Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

c/c++ÃæÊÔÌâ

½ñÌìÈ¥ÃæÊÔÒ»¼Ò¹«Ë¾£¬ÌîÁËÒ»·Ý“»§¿Úµ÷²é”£¬È»ºó¾ÍÊÇ×öÒ»·ÝÃæÊÔÌ⣬ÌâÄ¿ºÜ¼òµ¥
1¡¢¸Ä´íÌ⣬¸øÒ»¶Î³ÌÐò£¬Ö¸³ö´íÎó
2¡¢Socket×èÈûºÍ·Ç×èÈû±à³Ì£¬·Ç×èÈûµÄʵÏÖÔ­Àí
3¡¢TCP/IPÓëOSIÆß²ãÄ£ÐÍ
TCP/IP²Î¿¼Ä£Ð͹²ÓÐÎå²ã£ºÓ¦Óò㡢´«Êä²ã¡¢»¥ÁªÍø²ãºÍÖ÷»úÖÁÍøÂç²ã¡£
ÓëOSI²Î¿¼Ä£ÐÍÏà±È£¬TCP/IP²Î¿¼Ä£ÐÍûÓбíʾ²ãºÍ»á»°²ã¡£»¥ÁªÍø²ãÏ൱ÓÚOSIÄ£Ð͵ÄÍøÂç²ã£¬Ö÷»úÖÁÍøÂç²ãÏ൱ÓÚOSIÄ£ÐÍÖеÄÎïÀí²ãºÍÊý¾ÝÁ´Â·²ã
4¡¢ÓÃcʵÏÖ¿ìËÙÅжÏÒ»¸öÊýÊDz»ÊÇ2µÄn´Î·½
5¡¢Ð´³öÒ»¸öÅÅÐòËã·¨Æä¿Õ¼ä¸´ÔӶȼ°Ê±¼ä¸´ÔÓ¶È
6¡¢½¨Á¢Ò»¸ö2²æÊ÷²¢ÊµÏÖÒ»¸ö±éÀúËã·¨
ÌâÄ¿ËäÈ»¼òµ¥£¬»¹ÊǹÒÁË£¬Ö÷Òª»¹ÊÇÒòΪ׼±¸²»¹»£¬¸Ä´íÌâû¸Ä¶Ô£¬Ñ۹ⲻÈñÀû°¡¡£SocketÕâ¸ö¶«Î÷ÎÒ»¹ÊDz»Ì«Çå³þËüµÄÔ­Àí¡£Æß²ãЭÒ黹ÊǼǵã¬TCP/IPµÄ¾Í²»¼ÇµÃÁË¡£2µÄn´Î·½Õâ¸ö»¹ÊǺÜeasyµÄ¡£ÅÅÐòÎҾ;ÙÁËðÅÝÅÅÐò£¬¿Õ¼ä¸´ÔÓ¶ÈO(n)£¬Ê±¼ä¸´ÔÓ¶ÈO(n^2)¡£Õâ¸öÌâ´ð²îÁË£¬ÎÒдµÄ¿Õ¼ä¸´ÔÓ¶ÈÊÇn£¬°ÑO()¸ø¶ªÁË£¬Ê±¼ä¸´ÔӶȲ»ÖªµÀΪʲô¾ÍдÁ˸ölogn……ÓôÃÆ£¬ÆäʵÎÒÖªµÀÓ¦¸ÃÊÇn·½¡£¶þ²æÊ÷ÎÒÖªµÀÊÇÔõô»ØÊ£¬µ«ÊDz»¼ÇµÃÓÃc»òÕßc++ÔõôдÁË£¬ËµÁËÏÂÇ°Ðò±éÀú£¬Ð´Á˸öµÝ¹éË㷨α´úÂ룬Ҳûд³ö³ÌÐò¡£HR×îºóÈÃÎÒ»ØÈ¥×¼±¸×¼±¸Ï´ÎÀ´Ö±½Ó×ö±ÊÊÔÌâ¾Í¿ÉÒÔÁË£¬¿´À´ÎÒ±ÊÊÔ²îÁËÌ«¶à£¬ÄÜÏ뻹ÊDz»¹»µÄ£¬»¹ÒªÐ´³öÀ´ÏëµÄ¶«Î÷


Ïà¹ØÎĵµ£º

Delphi Óë C/C++ Êý¾ÝÀàÐͶÔÕÕ±í

Delphi Óë C/C++ Êý¾ÝÀàÐͶÔÕÕ±í
DelphiÊý¾ÝÀàÐÍC/C++
ShorInt
8λÓзûºÅÕûÊý
char
Byte
8λÎÞ·ûºÅÕûÊý
BYTE,unsigned short
SmallInt
16λÓзûºÅÕûÊý
short
Word
16λÎÞ·ûºÅÕûÊý
unsigned short
Integer,LongInt
32λÓзûºÅÕûÊý
int,long
Cardinal,LongWord/DWORD
32λÎÞ·ûºÅÕûÊý
unsigned long
Int6 ......

c/c++Îļþ¶Áд²Ù×÷×ܽá

ÔÚ±à³ÌµÄ¹ý³ÌÖУ¬ÎļþµÄ²Ù×÷ÊÇÒ»¸ö¾­³£Óõ½µÄÎÊÌ⣬ÔÚC++BuilderÖУ¬¿ÉÒÔʹÓöàÖÖ·½·¨¶ÔÎļþ²Ù×÷£¬ÏÂÃæÎҾͰ´ÒÔϼ¸¸ö²¿·Ö¶Ô´Ë×÷Ïêϸ½éÉÜ£¬¾ÍÊÇ£º
 
1¡¢»ùÓÚCµÄÎļþ²Ù×÷£»
2¡¢»ùÓÚC++µÄÎļþ²Ù×÷£»
3¡¢»ùÓÚWINAPIµÄÎļþ²Ù×÷£»
4¡¢»ùÓÚBCB¿âµÄÎļþ²Ù×÷£»
5¡¢ÌØÊâÎļþµÄ²Ù×÷¡£
¡¡
Ò¼¡¢»ùÓÚCµÄÎļþ²Ù×÷
¡¡¡¡ÔÚA ......

LinuxÏ»ñµÃϵͳʱ¼äµÄCÓïÑÔµÄʵÏÖ·½·¨

 LinuxÏ»ñµÃϵͳʱ¼äµÄCÓïÑÔµÄʵÏÖ·½·¨
#include<time.h>  //CÓïÑÔµÄÍ·Îļþ
#include<stdio.h>  //CÓïÑÔµÄI/O
void main()
{
time_t now;    //ʵÀý»¯time_t½á¹¹
struct tm  *timenow;    //ʵÀý»¯tm½á¹¹Ö¸Õë
time(&now);
//timeº¯Êý¶ÁÈ¡ÏÖÔÚµ ......

Windows via C/C++£ºÏ̵߳÷¶È——¸ÅÊö

»ùÓÚÓÅÏȼ¶µÄ²Ù×÷ϵͳ£¨preemptive operating system£©±ØÐëʹÓÃijÖÖËã·¨ÒÔ¾ö¶¨CPUÈçºÎµ÷¶ÈϵͳÖеÄỊ̈߳¬±¾Õ½«ÌÖÂÛWindows VistaʹÓõĵ÷¶ÈËã·¨¡£ ÎÒÃÇ֮ǰÌÖÂÛ¹ýÏ̵߳ÄÉÏÏÂÎĽṹCONTEXT£¬ÆäÖк¬ÓÐÏß³Ì×îºóÒ»´ÎÖ´ÐÐʱCPU¼Ä´æÆ÷×éµÄ״̬¡£ ²Ù×÷ϵͳÿ20ºÁÃë¼ì²éϵͳÖÐËùÓÐÏß³ÌÄں˶ÔÏóµÄ״̬£¬ÆäÖÐһЩ¶ÔÏó±»ÈÏΪÊǿɵ÷¶È£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ