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

CÃæÊÔÌ⣨ÕûÀí,¸üÐÂÖÐ...)

1.ÓÃÔ¤´¦ÀíÖ¸Áî#defineÉùÃ÷Ò»¸ö³£Êý£¬±íÃ÷1ÄêÓжàÉÙÃ루ÈòÄêºöÂÔ£©
#define SECONDS_PER_YEAR  (60*60*24*365)UL
2.дһ¸ö“±ê×¼”ºê MIN£¬ÊäÈëÁ½¸ö²ÎÊý²¢·µ»Ø½ÏСµÄÒ»¸ö
#define MIN(A,B) ( ( (A)<=(B) )?(A):(B) )
3.Ô¤´¦Àí±êʶ#errorµÄÄ¿µÄÊÇʲô?
Í£Ö¹±àÒë²¢ÏÔʾ³ö´íÐÅÏ¢
4.ÓÃCÓïÑÔ±àдһ¸öËÀÑ­»· £¿
while£¨1£©
{
}
5. ÓñäÁ¿a¸ø³öÏÂÃæµÄ¶¨Òå
a) Ò»¸öÕûÐÍÊý£¨An integer£©----  int a;
b) Ò»¸öÖ¸ÏòÕûÐÍÊýµÄÖ¸Õ루A pointer to an integer-----int *a;
c) Ò»¸öÖ¸ÏòÖ¸ÕëµÄµÄÖ¸Õ룬ËüÖ¸ÏòµÄÖ¸ÕëÊÇÖ¸ÏòÒ»¸öÕûÐÍÊý£¨A pointer to a pointer
to an integer)-------int **a;
d) Ò»¸öÓÐ10¸öÕûÐÍÊýµÄÊý×飨An array of 10 integers£©----int a[10];
e) Ò»¸öÓÐ10¸öÖ¸ÕëµÄÊý×飬¸ÃÖ¸ÕëÊÇÖ¸ÏòÒ»¸öÕûÐÍÊýµÄ£¨An array of 10 pointers to
integers£©------------int *a[10];
f) Ò»¸öÖ¸ÏòÓÐ10¸öÕûÐÍÊýÊý×éµÄÖ¸Õ루A pointer to an array of 10 integers£©---int (*a)[10]
g) Ò»¸öÖ¸Ïòº¯ÊýµÄÖ¸Õ룬¸Ãº¯ÊýÓÐÒ»¸öÕûÐͲÎÊý²¢·µ»ØÒ»¸öÕûÐÍÊý£¨A pointer to a fu
nction that takes an integer as an argument and returns an integer£©------int (*a)(int)
h) Ò»¸öÓÐ10¸öÖ¸ÕëµÄÊý×飬¸ÃÖ¸ÕëÖ¸ÏòÒ»¸öº¯Êý£¬¸Ãº¯ÊýÓÐÒ»¸öÕûÐͲÎÊý²¢·µ»ØÒ»¸öÕûÐÍ
Êý£¨ An array of ten pointers to functions that take an integer argument and r
eturn an integer £©--------int  (*a[10])(int)
6.¹Ø¼ü×ÖstaticµÄ×÷ÓÃÊÇʲô£¿
1)ÔÚº¯ÊýÌ壬һ¸ö±»ÉùÃ÷Ϊ¾²Ì¬µÄ±äÁ¿ÔÚÕâÒ»º¯Êý±»µ÷Óùý³ÌÖÐά³ÖÆäÖµ²»±ä¡££¨¾²Ì¬¾Ö²¿±äÁ¿£¿£©
2) ÔÚÄ£¿éÄÚ£¨µ«ÔÚº¯ÊýÌåÍ⣩£¬Ò»¸ö±»ÉùÃ÷Ϊ¾²Ì¬µÄ±äÁ¿¿ÉÒÔ±»Ä£¿éÄÚËùÓú¯Êý·ÃÎÊ£¬µ«²»Äܱ»Ä£¿éÍâÆäËüº¯Êý·ÃÎÊ¡£ËüÊÇÒ»¸ö±¾µØµÄÈ«¾Ö±äÁ¿¡££¨¾²Ì¬Íⲿȫ¾Ö±äÁ¿£¿£©
3) ÔÚÄ£¿éÄÚ£¬Ò»¸ö±»ÉùÃ÷Ϊ¾²Ì¬µÄº¯ÊýÖ»¿É±»Õâһģ¿éÄÚµÄÆäËüº¯Êýµ÷Óá£ÄǾÍÊÇ£¬Õâ¸öº¯Êý±»ÏÞÖÆÔÚÉùÃ÷ËüµÄÄ£¿éµÄ±¾µØ·¶Î§ÄÚʹÓᣣ¨¾²Ì¬Íⲿº¯Êý£¿£©
»¹ÓÐÒ»¸ö½âÊÍ£º
 1.ÐÞÊ;ֲ¿±äÁ¿Ê±£¬±íʾËüΪ¾²Ì¬¾Ö²¿±äÁ¿£¬ÉúÃüÖÜÆÚͬ³ÌÐòÔËÐÐʱ¼äÒ»Ñù£¬Ö»Äܱ»³õʼ»¯Ò»´Î
 2.ÓÃÓÚÈ«¾Ö±äÁ¿Ê±£¬±íʾ¾²Ì¬È«¾Ö±äÁ¿£¬±äÁ¿¿É¼û·¶Î§ÔÚ±¾ÎļþÖпɼû£¬ÆäËü²»¿É¼û
 3.ÓÃÓÚº¯ÊýÄÚʱ£¬±äÁ¿¿É¼û·¶Î§Îªº¯ÊýÄÚ£¬ÆäËü²»¿É¼û£¨¾õµÃ°üÀ¨ÔÚµÚÒ»¸öÖУ©
×ܽ᣺ÏÞÖÆÁ˱äÁ¿µÄ×÷ÓÃÓò
     
      


Ïà¹ØÎĵµ£º

cʵÏֵĶÁ´óÎļþ·½·¨£¨Ô´´úÂ룩


static char *file2memory(FILE *file, long *size)
{
  char buffer[1024];
  char *string=NULL;
  char *newstring=NULL;
  long len=0;
  long stringlen=0;
  if(file) {
    while((len = fread(buffer, 1, sizeof(buffer), f ......

C/C++ÖÐÊý×éÐβÎ(תÌû)

Ш×Ó
¡¡¡¡ È¥Ä꣬ÖÜÐÇÐÇ´ó¸çÔø¾­ÔÚVCKBASE/C++ÂÛ̳·¢±í¹ýһƪÎÄÕ“Êý×éÒýÓÃ"ÒÔ±ÜÃâ"Êý×é½µ½×”£¬µ±Ê±ÎÒ²»ÄÜÉîÈëÀí½âÕâÖÖÓ÷¨µÄº¬Ò壻ʱ¸ôÒ»Ä꣬ÎÒµÄ֪ʶÓм¸¾­´¸Á¶£¬ÖÕÓÚ¶Ô´ËÎÄÕ½¥ÓÐËùÎò£¬ËùÒÔ°ÑÎáËùÖª×÷Ïë¾ßÌåµÀÀ´£¬¾¹Ò²³ÉÁËһƪÎÄÕ¡£Ï£Íû±¾ÎÄÄܶÔÐÂÊÖÓÐËùÆôµÏ£¬Í¬Ê±Ò²Ï£Íû´ó¼Ò·¢ÏÖ±¾ÎÄÖеÄÊè©֮´¦ºó²»ÁßÁô ......

C/C++ ±ê×¼º¯ÊýÓ¦ÓÃС½á Ö® Ëæ»úº¯Êý

×Ô´Ó½Ó´¥ÕâÃÅÓïÑÔµ½ÏÖÔÚÓÐÒ»¸ö¶àÐÇÆÚµÄʱ¼äÁË£¬ËäÈ»ÒÔºóµÄ·»¹ºÜ³¤£¬»áÓöµ½¸÷ÖÖÀ§ÄÑ£¬µ«Ö»ÒªÓÐÄÍÐĺÍÒãÁ¦£¬»¹Òª½Å̤ʵµØµÄ´òºÃ»ù´¡£¬¾ÍÒ»¶¨ÄÜÓг¤Í¾µÄ½ø²½£¬ºÇºÇ£¬Ï£ÍûÔÚÕâÀïµÄÿһ¸öÈ˶¼ºÍÎÒÒ»Æð¼ÓÓÍ£¬²»¶Ï½ø²½¡£
Ëæ»úº¯Êý¶ÔÿÖÖ±à³ÌÓïÑÔÀ´Ëµ¶¼ÊÇÒ»¸ö²»¿ÉȱÉٵĻ·½Ú£¬ÄÇôÔÚC++ÖÐËüÊÇÈçºÎÓ¦Óõģ¬ÕâÀïΪÁË·½±ãÀí½â£¬¶ÔÒÔÇ ......

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 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ