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++
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/SÊÇClient/ServerµÄËõд¡£·þÎñÆ÷ͨ³£²ÉÓøßÐÔÄܵÄPC¡¢¹¤×÷Õ¾»òСÐÍ»ú£¬²¢²ÉÓôóÐÍÊý¾Ý¿âϵͳ£¬ÈçOracle¡¢Sybase¡¢Informix»ò SQL Server¡£¿Í»§¶ËÐèÒª°²×°×¨ÓõĿͻ§¶ËÈí¼þ¡£
B/S ÊÇBrower/ServerµÄËõд£¬¿Í»§»úÉÏÖ»Òª°²×°Ò»¸öä¯ÀÀÆ÷£¨Browser£©£¬ÈçNetscape Navigator»òInternet Explorer£¬·þÎñÆ÷°²×°Oracle¡¢Sybase¡¢In ......
CÊÇÒ»¸ö½á¹¹»¯ÓïÑÔ£¬ÈçÌ·ÀÏÒ¯×ÓËù˵£ºËüµÄÖصãÔÚÓÚËã·¨ºÍÊý¾Ý½á¹¹¡£C³ÌÐòµÄÉè¼ÆÊ×Òª¿¼ÂǵÄÊÇÈçºÎͨ¹ýÒ»¸ö¹ý³Ì£¬¶ÔÊäÈ루»ò»·¾³Ìõ¼þ£©½øÐÐÔËËã´¦ÀíµÃµ½Êä³ö£¨»òʵÏÖ¹ý³Ì£¨ÊÂÎñ£©¿ØÖÆ£©£¬¶ø¶ÔÓÚ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º¯Êý¶ÁÈ¡ÏÖÔÚµ ......
»ùÓÚÓÅÏȼ¶µÄ²Ù×÷ϵͳ£¨preemptive operating system£©±ØÐëʹÓÃijÖÖËã·¨ÒÔ¾ö¶¨CPUÈçºÎµ÷¶ÈϵͳÖеÄỊ̈߳¬±¾Õ½«ÌÖÂÛWindows VistaʹÓõĵ÷¶ÈËã·¨¡£ ÎÒÃÇ֮ǰÌÖÂÛ¹ýÏ̵߳ÄÉÏÏÂÎĽṹCONTEXT£¬ÆäÖк¬ÓÐÏß³Ì×îºóÒ»´ÎÖ´ÐÐʱCPU¼Ä´æÆ÷×éµÄ״̬¡£ ²Ù×÷ϵͳÿ20ºÁÃë¼ì²éϵͳÖÐËùÓÐÏß³ÌÄں˶ÔÏóµÄ״̬£¬ÆäÖÐһЩ¶ÔÏó±»ÈÏΪÊǿɵ÷¶È£ ......