C#·¢ËÍÓʼþ´úÂë £¨B/S¡¢C/S½Ô¿ÉÓã©
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Net.Mail;
using System.Net;
/// <summary>
/// EmailPost µÄժҪ˵Ã÷
/// </summary>
public class EmailPost
{
public EmailPost()
{
//
// TODO: ÔÚ´Ë´¦Ìí¼Ó¹¹Ô캯ÊýÂß¼
//
}
public static string PostEmail(string MailTitle,string MailBody,string RequestEmail)
{
string Poster = "****@163.com"; //·¢ËÍÕßÓÊÏäµØÖ·
string PosterPwd = "********";//·¢ËÍÕßÓÊÏäÃÜÂë
string SmtpHost = "smtp.163.com"; //·¢ËÍÓʼþ·þÎñÆ÷
string getstr = "";
MailMessage mailmsg = new MailMessage();
mailmsg.from = new MailAddress(Poster); //¶¨Òå·¢¼þÈË
mailmsg.To.Add(RequestEmail); //Ìí¼ÓÊÕ¼þÈË
mailmsg.Subject = MailTitle; //Óʼþ±êÌâ
mailmsg.Body =MailBody; //ÓʼþÄÚÈÝ
//return SendEmail(mailmsg);
SmtpClient smtpClient = new SmtpClient();
//
Ïà¹ØÎĵµ£º
¶¨Ò壺Éèa¶ÔbµÄ³Ë·¨ÄæÔªÊÇxÔò¿ÉÒÔ¼ÇΪa*x=1 mod b£¬¼´aºÍxµÄ»ý³ýÒÔbµÄÓàÊýÊÇ1£»
³Ë·¨ÄæÔª³£ÓÃËã·¨ÊÇÅ·¼¸ÀïµÂËã·¨£º
//Ëã·¨Çód¹ØÓÚÄ£fµÄ³Ë·¨ÄæÔªd-1 £¬¼´ d* d-1 mod f = 1
¡¡¡¡1 ¡£(X1£¬X2£¬X3) := (1£¬0£¬f)£» (Y1£¬Y2£¬Y3) := (0£¬1£¬d)
¡¡¡¡2¡£ if (Y3=0) then return d-1 = null //ÎÞÄæÔª
......
¸´ÔÓµÄC\C++ÉùÃ÷£¬³£³öÏÖÔÚѧУµÄ¿¼¾í£¬ÃæÊÔÌâ»òÊÇÅ£ÈËÀÏÍâµÄ´úÂëÖС£
ÎÒÃÇÔÚʵ¼ÊµÄ¹¤×÷ÖУ¬Ó¦¸Ã¾¡¿ÉÄÜÉÙʹÓø´ÔÓµÄÉùÃ÷¡£¸´ÔÓµÄÉùÃ÷£¬»áÈÃÔĶÁÄú´úÂëµÄÈ˺ÜÊÇÓôÃÆ¡£
ËäÈ»²»Ê¹ÓÃÕâÖÖ¸´ÔÓµÄÉùÃ÷£¬µ«»¹ÊÇÓ¦¸Ã°Ñ½«ÈçºÎ½âÎöÕâÖÖ¸´ÔÓµÄÉùÃ÷µÄ·½·¨¼ÇÔÚÐÄÖС£
ËùÒÔ£¬ÎÒ°ÑÕâÖÖ·½·¨¼Ç¼ÏÂÀ´£¬ÒÔ±¸²»Ê±Ö®Ðè¡£
ÈëÃÅÌâ
1) Ò»¸öÕûÐ ......
C²Ù×÷·ûµÄÓÅÏȼ¶ºÍ¹ØÁª¹æÔò
²Ù×÷·û
¹ØÁª¹æÔò
¹ØÁª²Ù×÷·û () [] -> .
´Ó×óµ½ÓÒ
Ò»Ôª²Ù×÷·û ! – ++ -- + - (type) * & sizeof
´ÓÓÒµ½×ó
³Ë·¨ºÍ³ý·¨ * / %
´Ó×óµ½ÓÒ
¼Ó·¨ºÍ¼õ·¨ + -
´Ó× ......
Ò»¡¢¶àάÊý×éµØÖ·µÄ±íʾ·½·¨
¡¡¡¡ÉèÓÐÕûÐͶþάÊý×éa[3][4]ÈçÏ£º
¡¡¡¡0 1 2 3
¡¡¡¡4 5 6 7
¡¡¡¡8 9 10 11
¡¡¡¡ÉèÊý×éaµÄÊ×µØַΪ1000£¬¸÷ϱê±äÁ¿µÄÊ×µØÖ·¼°ÆäÖµÈçͼËùʾ¡£
ÔÚÇ°ÃæÔø¾½éÉܹý£¬ CÓïÑÔÔÊÐí°ÑÒ»¸ö¶þάÊý×é·Ö½âΪ¶à¸öһάÊý×éÀ´´¦Àí¡£Òò´ËÊý×éa¿É·Ö½âΪÈý¸öһάÊý×飬¼´a[0]£¬a[1]£¬ ......