¹ØÓÚÔÚC³ÌÐòÖе¼ÈëͼƬµÄÎÊÌâ - C/C++ / CÓïÑÔ
ÎÒÏÖÔÚÔÚ×öC¸ß¼¶³ÌÐòÉè¼Æ£¬ÏëÔÚ³ÌÐòÖе¼ÈëͼƬ£¬²»ÖªµÀÊÇÓÃij¸öº¯ÊýʵÏÖ»¹ÊÇ×Ô¼ºÐ´Ë㷨ʵÏÖ°¡£¿Çë¸÷λ°ï°ï棡
google
ÌâĿ˵µÄºÃ²»Çå³þ£¿
ÊÇmfc?»¹ÊÇqt?
ÎÒÒ²²»Ã÷°× yumenying
ÎÒÓÃCÓïÑÔ±àÁËÒ»¸öͼÊéÐÅÏ¢¹ÜÀíϵͳ£¬ÀïÃæ×ÔȻҪÓÐËÑË÷ͼÊéµÄ¹¦ÄÜÁË£¬ÎÒÏëΪËÑË÷µ½µÄÿһ±¾Ê鶼¸½´øÒ»ÕÅͼƬ£¬¾ÍÏñһЩÍøÉÏÊéµêËÑË÷µ½µÄ½á¹ûÄÇÑù£¬µ«ÊÇÔõô²ÅÄܽ«ËùÒªµ÷ÓõÄͼƬµ¼Èëµ½Îҵġ°ËÑË÷½á¹û¡±ÖÐÄØ£¿Çë¸÷λ°ïæÏëÏë°ì·¨¡£
Õâ´Î˵µÄÒѾºÜÇå³þÁË¡£
MFCÊÇVCÀï²ÅÓеģ¬¶øÎÒÃǿγÌÀï°²ÅŵĿÎÌâÊÇÒªÓÃTC×ö¡£
ÓÑÇé°ï¶¥~~~~~~~
ÎÒÒ²ÓÑÇé°ï¶¥¡£
ÎÒ²ÅÊdzõ¼¶Ñ§cµÄ »¹²»¶® À´¿´¿´
ÎÒÒ²ÊdzõѧֻÊÇÀ´¼ûʶ¼ûʶ
{{
Ïà¹ØÎÊ´ð£º
дÁ˸ö²âÊÔ³ÌÐòÈçÏÂ
struct hostent *hp;
char AlarmDevIP[20];
int x2;
hp = gethostbyname("www.google.com");
if (hp)
{
......
ÓÐÒ»10*10¾ØÕ󣬳ýÈ¥µÚÒ»¸öµã£¨0£¬0£©ºÍ×îºóÒ»µã£¨9£¬9£©£¬»¹Óа˸öµãΪ1£¬ÆäËû¶¼Îª0£¬ÒªÇóÓöþάÊý×é±íʾ¡£°Ë¸öµãÊÇËæ»úÉú³ÉµÄ£¬±àдÏà¹Ø³ÌÐò±íʾ¾ØÕóËùÓпÉÄÜÇé¿ö¡£
ÕæÐÄÇó½Ì¸÷λ¸ßÊÖ£¬°¥£¡±¾ÈËÌ«²ËÁË£¡ºÇºÇ£¡
......
visual c++2008Ëٳɰ棬²»ÄܱàÒëC³ÌÐòÂð£¿Èç¹ûÄÜÊÇÔõô¿ªÊ¼µÄ°¡£¿ÓÃËü´øµÄÃüÁîÌáʾµ¥Ôª³ýÍâ ¡£
н¨¹¤³Ì£¨¿Õ¹¤³Ì»òwin32¿ØÖÆ̨£©
¾ø¶Ô¿ÉÒÔ¡£½¨Á¢win32¿ØÖÆ̨³ÌÐò¾Í¿ÉÒÔ
ÒýÓÃ
н¨¹¤³Ì£¨¿Õ¹¤³Ì»òwin32¿ØÖÆ̨£ ......
ÈçºÎ½«Ò»¸öListBoxÖеÄÊý¾Ý´æÔÚÊý¾Ý¿âÖеÄÒ»¸ö×Ö¶ÎÏÂÃ棬²¢ÇÒÿÌõ¼Ç¼µÄ×Ö·û´®¸öÊý²»Ò»¶¨ ÒÔ¼°ÈçºÎ´ÓÊý¾Ý¿âÖжÁÈ¡¸ÃListBoxÖеÄËùÓмǼ
C/C++ code:
//´æÈëÊý¾Ý¿â
void __fastcall TForm1::Button5Click(TO ......