½«C/C++³ÌÐò·Åµ½ÍøÂçÉϲ¢²»ÊǼòµ¥µÄ¸´ÖÆÕ³Ìù£¬´ó²¿·ÖÍøÕ¾ºÍblogÊDz»Ìṩ´úÂëµÄÖ±½ÓÕ³ÌùµÄ£¨µ±È»CSDNÊDz»´íµÄ£©£¬Ö®Ç°ÔÚsinaд²©¿ÍµÄʱºò¾ÍÅöµ½ÀàËƵÄÎÊÌâ¡£
C/C++×¥»»ÎªHTMLµÄ¹Ø¼üÊÇ´¦Àí×¢ÊÍ£¬¹Ø¼ü×Ö¡£µ±È»Ò²¿ÉÒÔ¶Ô×Ö·û´®£¬Êý×Ö½øÐÐÒ»¶¨µÄ¼ÓÁÁ´¦Àí¡£
1.ÎÒÒÔÇ°ÓÃC++д¹ýÒ»¸ö³ÌÐò£¬Æäʵ±íÃæÉÏÊÇC++£¬Ö»ÊÇÊä³öÓÃÁËcoutºÍcin¶øÒÑ£¬ÆäËûµÄº¯ÊýºÍ˼Ï뻹ÊÇCÓïÑԵġ£µ±Ê±ÊµÏֵĴúÂë¼ÓÁÁµÄ½á¹ûÊÇÕâÑùµÄ¡£
Õâ¸ö³ÌÐòµÄ˼ÏëÔÚmainº¯ÊýÖÐÌåÏÖµ½ÁË£¬¼´Ò»ÐÐÒ»ÐеĶÁÈ¡ºÍ´¦ÀíÎļþÖ±µ½Îļþβ¡£
Ê×ÏÈÊÇchangeType()º¯Êý£¬Õâ¸öº¯ÊýÖ÷ÒªµÄÄ¿µÄÊÇ´¦ÀíµôHTMLÖеÄÃô¸Ð×Ö·û£¬ÈôúÂëÄܹ»ÒÔHTML¸ñʽÀ´ÏÔʾ¡£¾Ù¸öÀý×ÓÀ´Ëµ"<"ºÍ">"ÕâÑùµÄ×Ö·ûʱ²»ÄÜÖ±½ÓÔÚHTMLÖÐÏÔʾµÄ£¬ÒòΪÕâÑùµÄ×Ö·ûͬʱҲÊÇHTMLÖֵĹؼü·ûºÅ¡£HTML½â¾öÏÔʾÎÊÌâµÄ°ì·¨ÊÇÓÃ"<"ºÍ">"À´Ìæ»»ËûÃÇ£¬Õâ¸öº¯Êý´óÖ¾ÍÊÇ×öÕâÑùµÄÊÂÇé¡£
È»ºóÊÇChangeColor()º¯ÊýÖ÷ÒªÊÇ´¦Àí¶ÔÓÚ×¢Êͺ͹ؼü×ֵļÓÁÁ¡£×¢Òâ×¢ÊÍÊÇÊ×ÒªµÄ£¬ÔÚ×¢ÊÍÖеĹؼü×ÖÊDz»ÐèÒª¼ÓÁÁµÄ¡£ÕÒ³öCÓïÑÔÖеĶÎ×¢ÊͺÍÐÐ×¢ÊͲ¢Ìí¼ÓTHML´úÂëÖеÄÑÕÉ«´úÂ룬ÕâÀïʹÓÃÁ˺ܶàstringº¯Êý£¬±ÈÈç±È½ÏºÍ²åÈ룬ÎÒ×Ô¼ºÒ²¶ÔÆäÖеĺ¯Êý×öÁËһЩСÀ©Õ¹£¬ÈçCmpStrÀ´¸üºÃµÄÊÊÓ¦Õâ¸ö³ÌÐò¡£×îºóÊǼìË÷ÿһ¸ö¹Ø¼ü×Ö²¢ÇÒ¼ÓÁÁ¡£ÕâÀïµÄ˼ÏëÊǽö½ö¼ì²éCÓïÑÔÖеÄÌض¨±êÖ¾À´×ö³öÅжϣ¬ÕâÑù×öÊÇÓÐÎÊÌâµÄ£¬Ç뿴ʵ¼Ê´úÂë×ÐϸÏëһϡ£
/*********************************************************************
name:C/C++³ÌÐòÉú³ÉÍøÒ³
author:²»ÊÇÆ»¹û
date:08-12-20
**********************************************************************/
#include <fstream>
#include <iostream>
#include <string.h>
using namespace std;
//¹Ø¼ü×ÖÊý×é
char KEYWORD[55][15] = {"auto","bool","break","case","catch","char","class","const","continue","default","delete","do","double","else","enum","explicit","extern","false","float","for","friend","goto","if","inline","int","long","mutable","namespace",
"new","operator","private","protected","public","register","return","short","signed","sizeof","static","struct","switch","template","this","true","try",
"typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","whil
System.Net.WebRequest request = System.Net.WebRequest.Create("http://la.jmw.com.cn/c.asp");
request.UseDefaultCredentials = false;
System.Net.WebResponse response = requ ......
ǶÈëµ½¶à¸öϵͳ±à³Ìʱ³£³£³öÏÖ±àÂëÎÊÌ⣬ÌرðÊÇÖÐÎÄ£¬²¢ÇÒ¶ÔÓÚ¹ú±êGB2312À´Ëµ£¬²»ÏñUTF-8ÄÇÑù¿ÉÒÔÓÃËã·¨Ö±½ÓתΪunicode£¨´«ËµÊÇÕâô˵µÄ£¬ÎÒҲûÊÔ¹ý£©£¬ËùÒÔGBµ½UnicodeÖ»ÄÜÊÇÒ»¶ÔÒ»µÄת»»¡£
ÒÔÇ°Åöµ½¹ýGBתΪUnicodeµÄÄÑÌ⣬ÔÚÍøÉÏÕÒµ½ÁËÔ´Â룬ÎÒÖ»ÊÇÐÞ¸ÄÁËһϲéÕҵĴúÂ룬½«²éÕÒËã·¨¸ÄΪ¶þ·Ö²éÕÒ¡£
&n ......