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

20100527 CÏÝÚåÓëȱÏݶÁÊé±Ê¼Ç£¨Ò»¡¢¶þÕ£©

  µÚÒ»Õ£º´Ê·¨“ÏÝÚå”
  ×Öĸ±¾ÉíûÓÐÒâ˼£¬µ«Êǽ«×Öĸ×é³ÉµÄµ¥´Ê¾Í±»¸³ÓèÁËÒâÒå¡£ÔÚCÓïÑÔÖУ¬×Ö·û×éºÏ³ÉÁËÕû¸ö´úÂ룬ÓÉ×Ö·ûÊéд´øÀ´µÄ±ÊÎó»á´øÀ´²»ÉÙÂé·³¡£×÷Ϊ³ÌÐòÔ±£¬²»ÄÜÖ¸Íû¿¿±àÒëÆ÷À´ÌáÐÑ¡£Òò´Ë£¬ÐèҪעÒ⣺
  1.CÓïÑÔÖУ¬·ûºÅÖ®¼äµÄ¿Õ°×£¨°üÀ¨¿Õ¸ñ·û£¬ÖƱí·û£¬»»Ðзû£©½«±»ºöÂÔ¡£
  2.¸³ÖµÓï¾äÊÇ=£¬Ò»¸öµÈºÅ¡£¹ØϵÔËËã“ÏàµÈ”ÊÇ==£¬2¸öµÈºÅ¡£µ±±äÁ¿ºÍ³£Á¿Ïë±È½Ïʱ£¬¿ÉÒÔ½«³£Á¿ÊéдÔÚÇ°Ã棬±ÜÃâÊéд´íÎó¡£
  3.&ÊÇÂß¼­ÔËË㰴λÓ룬&&ÊÇÂß¼­ÔËËãÓ룬|ÊÇÂß¼­ÔËË㰴λ»ò£¬||ÊÇÂß¼­ÔËËã»ò
  4.ΪÁ˱ÜÃâ×Ö·û¶þÒåÐÔ£¬Ó¦¸Ã׼ȷ±í´ï£¬ÀýÈç¿ÉÒÔ¼ÓÈ루£©µÈ¡£ÅжÏÊÇ·ñΪ0ʱ£¬Ò²½«Ìõ¼þдÈë¡£
  5.Èç¹ûÒ»¸öÕûÐγ£Á¿µÄµÚÒ»¸ö×Ö·ûÊÇ0£¬ÄÇô¸Ã³£Á¿±»ÊÓΪ8½øÖÆÊý¡£
  6.Óõ¥ÒýºÅÒýÆðµÄÒ»¸ö×Ö·ûʵ¼ÊÉÏ´ú±íÁËÒ»¸öÕûÊý¡£ÓÃË«ÒýºÅÒýÆðµÄ×Ö·û´®£¬ÊÇÒ»¸öÖ½ÏäÎÞÃûÊý×éÆðʼ×Ö·ûµÄÖ¸Õë¡£
µÚ¶þÕ£ºÓï·¨“ÏÝÚå”
  ÒªÀí½âÒ»¸öC³ÌÐò£¬½ö½öÀí½â×é³É¸Ã³ÌÐòµÄ·ûºÅÊDz»¹»µÄ¡£ÓÐʱºòһЩ¶¨ÓÚÓëÈËÃǵÄÖ±¾õÏà㣣¬»òÕßÈÝÒ×ÒýÆð»ìÏý¡£
  ÈκÎC±äÁ¿µÄÉùÃ÷¶¼ÓÐÁ½²¿·Ö×é³É£ºÀàÐÍÒÔ¼°Ò»×éÀÛËÀ±í´ïʽµÄÉùÃ÷·û¡£ÉùÃ÷·û´Ó±íÃæÉÏ¿´Óê±í´ïʽÓÐЩÀàËÆ¡£Ò»µ©ÖªµÀÁËij¸öÉùÃ÷£¬ÄÇô¸ÃÀàÐ͵ÄÀàÐÍת»»·ûÒ²¾ÍÈÝÒ׵õ½ÁË£ºÖ»ÐèÒª½«ÉùÃ÷ÖеıäÁ¿ÃûºÍÉùÃ÷ĩβµÄ·ÖºÅÈ¥µô£¬ÔÙ½«Ê£ÓàµÄ²¿·ÖÓÃÀ¨ºÅ·â×°ÆðÀ´¡£
  CÓïÑÔµÄÓÅÏȼ¶£º


ÀàÐÍ
ÔËËã·û
½áºÏÐÔ
²»ÊÇÔËËã·û
()  []  -> 
.
×Ô×óÏòÓÒ
µ¥Ä¿ÔËËã·û
!  ~  ++   --   -    (type)   *   &   sizeof
×ÔÓÒÏò×ó
ËãÊõÔËËã·û
*  /  %
×Ô×óÏòÓÒ
 
+  -
×Ô×óÏòÓÒ
λÒÆÔËËã·û
<<  
>>
×Ô×óÏòÓÒ
 ¹ØϵÔËËã·û

<=  >  >=
×Ô×óÏòÓÒ
==  £¡=
×Ô×óÏòÓÒ
Âß¼­ÔËËã·û
&
×Ô×óÏòÓÒ
 
^
×Ô×óÏòÓÒ
 
|
×Ô×óÏòÓÒ
 
&&
×Ô×óÏòÓÒ
 
||
×Ô×óÏòÓÒ
 Ìõ¼þÔËËã·û
?:
×ÔÓÒÏò×ó
¸³ÖµÔËËã·û
assignments
×ÔÓÒÏò×ó
 ¶ººÅÔËËã·û
  Óï¾ä½áβ´¦µÄ·ÖºÅҪעÒâ¡£
  switchÓï¾äµÄbreakҪעÒâ¡£
  if Óï¾äÖÐelse×ÜÓëδÅä¶Ôµ


Ïà¹ØÎĵµ£º

ÒÀÈ»CÄÚ´æ

Ò». ÔÚcÖзÖΪÕ⼸¸ö´æ´¢Çø
1.Õ» - ÓɱàÒëÆ÷×Ô¶¯·ÖÅäÊÍ·Å
2.¶Ñ - Ò»°ãÓɳÌÐòÔ±·ÖÅäÊÍ·Å£¬Èô³ÌÐòÔ±²»ÊÍ·Å£¬³ÌÐò½áÊøʱ¿ÉÄÜÓÉOS»ØÊÕ
3.È«¾ÖÇø£¨¾²Ì¬Çø£©£¬È«¾Ö±äÁ¿ºÍ¾²Ì¬±äÁ¿µÄ´æ´¢ÊÇ·ÅÔÚÒ»¿éµÄ£¬³õʼ»¯µÄÈ«¾Ö±äÁ¿ºÍ¾²Ì¬±äÁ¿ÔÚÒ»¿éÇøÓò£¬Î´³õʼ»¯µÄÈ«¾Ö±äÁ¿ºÍδ³õʼ»¯µÄ¾²Ì¬±äÁ¿ÔÚÏàÁÚµÄÁíÒ»¿éÇøÓò¡£- ³ÌÐò½áÊøÊÍ·Å
4.ÁíÍ ......

extern "C"

extern "C"
extern "C"°üº¬Ë«Öغ¬Ò壬ÆäÒ»£º±»ËüÐÞÊεÄÄ¿±êÊÇ“extern”µÄ£»Æä¶þ£º±»ËüÐÞÊεÄÄ¿±êÊÇ“C”µÄ¡£
1£©±»extern “C”ÏÞ¶¨µÄº¯Êý»ò±äÁ¿ÊÇexternÀàÐ͵ģ»
    externÊÇC/C++ÓïÑÔÖбíÃ÷º¯ÊýºÍÈ«¾Ö±äÁ¿×÷Ó÷¶Î§£¨¿É¼ûÐÔ£©µÄ¹Ø¼ü×Ö£¬¸Ã¹Ø¼ü×Ö¸æËß±àÒëÆ÷£¬ÆäÉùÃ÷µÄº¯ ......

¶íÂÞ˹·½¿écÔ´´úÂë

££i nclude <stdio.h>
££i nclude <dos.h>
££i nclude <conio.h>
££i nclude <graphics.h>
££i nclude <stdlib.h>
#ifdef __cplusplus 
#define __CPPARGS ...
#else
#define __CPPARGS
#endif
#define MINBOXSIZE  ......

python udp c/s ¼Ç¼

server:
import sys
import socket
host = sys.argv[1]
port = int(sys.argv[2])
 
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
 
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
 
s.bind((host,port))
 
while 1:
    try:
   &n ......

Îĵµ´¦ÀíµÄcº¯Êý

Îļþº¯Êý´ò¿ªÎļþº¯Êý
[º¯ÊýÍ·]
FILE *fopen£¨char *filename, Char *mode£© 
[²ÎÊý]
filename ×Ö·ûÐÍÖ¸Õ룬ָÏòµÄ×Ö·û´®ÊÇÒª´ò¿ªµÄ´ÅÅÌÎļþÃû£»mode ×Ö·ûÐÍÖ¸Õ룬ָÏòµÄ×Ö·û´®ÊÇÎļþʹÓ÷½Ê½¡£ÕâÁ½¸ö²ÎÊý¶ÔÓ¦µÄʵ²Î¿ÉÒÔÊÇ×Ö·ûÖг£Á¿£¬Ò²¿ÉÒÔÊDz¹·ûÊý×éÊ×µØÖ·£¬»òÕßÊÇÖ¸Ïò×Ö·û´®µÄÖ¸Õë±äÁ¿¡£ 
ÎļþʹÓ÷½Ê½¿ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ