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

ÓÉCÊý×éarray[

        ×òÌìÒ»¸öͬѧºÍÎÒ̸ÆðËûÔÚ²âÊÔC³ÌÐòʱʱ·¢ÏÖʹÓÃ-1ΪϱêÀ´·ÃÎÊÊý×飬gcc²¢Ã»Óб¨´í£¬¶øÇÒÄܹ»ÔËÐгɹ¦£¬Õâ¸öÒÔÇ°ÎÒ»¹Ã»ÊÔ¹ý£¬´¦ÓÚºÃÆ棬½ñÌìÏÂÎç³éÁ˵ãʱ¼ä¿´ÁËһϡ£
     ÏÂÃæÊÇÎÒʹÓõIJâÊÔ´úÂ룬ÔËÐл·¾³ÊÇDEV-C++4.9.9.2£¬±àÒëÆ÷ʹÓõÄÊÇgcc¡£
  int a[4] = {1,2,3,4};
  int b[4] = {5,6,7,18};
  //  double c = 20.3;
  printf("a[-1] is %d\n",a[-1]);
  printf("a[-4] is %d\n",a[-4]);
  printf("b[4] is %d\n",b[4]);
  ÔËÐнá¹ûΪ
a[-1] is 18
a[-4] is 5
b[4] is 1
Çë°´ÈÎÒâ¼ü¼ÌÐø. . .
ÏÖÔÚÎÒºÍÊÒÓѵĽâÊÍÊÇÕâÑù£¬³ÌÐòÖÐa£¬bÊý×é°´ÏÂÁз½Ê½½øÈëÔËÐÐÕ»£º
....a[3],a[2],a[1],a[0],b[3],b[2],b[1],b[0]....
Õâʱa[-1]Ç¡ºÃÖ¸µ½b[3]£¬b[-4]Ö¸µ½b[0]£¬¶øͬÀíb[4]Ö¸µ½ÁËa[0]¡£
    ÒÔÇ°×Ô¼ºÐ´³ÌÐò´ÓÀ´Ã»Ïë¹ýÈ¥°ÑÊý×é³ÌÐòд³ÉÕâÑù£¬¾õµÃÄÇÑù³ÌÐò»á±¨´í£¬È»¶øÏÖÔÚµÄÖ´Ðнá¹ûÈ´ÈÃ
ÎҺܳԾª£¬·Çµ«²»±¨´í£¬¶øÇÒÔËÐкÜÕý³£¡£ÄÇô£¬¶ÔÓÚCÀïÃæµÄÊý×飬¾ÍÓÐЩ“Ãû´æʵÍö”µÄÏÓÒÉ£¬ÒòΪ
ÕâÀïÍêÈ«ÊÇCÖ¸ÕëÔÚ¿ØÖÆ×ÅÒ»ÇУ¬²¢²»´æÔڱ߽ç¼ì²éÕâÑùµÄ»úÖÆ£¨ÊéÉϵĽâÊÍÊÇÌá¸ßÔËÐÐËٶȣ©£¬ÄÇôC
Êý×éʵ¼ÊÉϾÍÊÇ˳Ðò´æ´¢ÁËÒ»ÁÐͬÀàÐ͵ÄÊý£¬È»ºóÈÃÒ»¸ö³£ÊýÖ¸ÕëÖ¸ÏòÆ俪ʼµØÖ·¼´¿É¡£ÕâʱÕâ¸öÇ¿´ó¶ø
ÓÖ¿ÉŵÄÖ¸ÕëòËƾͿɓΪËùÓûΪ”ÁË£¬ÏòÉÏ»òÏòÏ·ÃÎÊ£¬ÒѾ­²»´æÔÚÕÏ°­ÁË¡£ÄÇôÕâÀïÒ»¸öDZÔÚµÄÐźÅ
ÊÇ£ºdangerous¡£ÒòΪÄã¿ÉÒÔÓÃËü·ÃÎʳ¬¹ýÕ»»ò»º³åÇøµÄ±ß½ç£¬Èç¹ûÐÞ¸ÄÄÇÀïÃæµÄÖµ£¬¾Í¿ÉÄÜÔì³É²»¿É
ÖªµÄΣÏÕ¡£Ò»Ð©¶Ô·þÎñÆ÷»òÆäËûÈí¼þµÄ¹¥»÷¾Í¿ÉÄÜÊÇÀûÓÃÕâÒ»µã¡£
     CÀﻹÓÐÆäËûº¯ÊýÒ²´æÔÚÀàËƵÄÎÊÌ⣺ÈçstrcpyºÍstrcatµÈ£¬ºÜÓпÉÄܳ¬³öÄ¿µÄÊý×éµÄ±ß½ç£¬µ¼ÖÂÒç
³ö£¬»¹ÓÐÊäÈ뺯Êý£¬¶¼´æÔÚÕâÑùµÄÎÊÌâ¡£ÕâÀï¸øÎÒÃÇÌáÁËÐÑ£ºÐ¡ÐÄʹÓÃCÀïÃæµÄÖ¸Õ룬ͬʱ×öºÃ³ÌÐòÀïµÄ
ÈÝ´í£¬¾¡Á¦À´±ÜÃâÕâЩ´íÎó¡£


Ïà¹ØÎĵµ£º

»ùÓÚMySQLµÄ¸ßÐÔÄÜÊý¾Ý¿âÓ¦Óÿª·¢(ʹÓÃCÁ¬½ÓMysql)

 ---- ÔÚÊý¾Ý¿âµÄÓ¦Óÿª·¢ÖУ¬³£³£»áÓöµ½ÐÔÄܺʹú¼ÛµÄÖ®¼äì¶Ü¡£ÒÔ×÷ÕßÔÚ¿ª·¢¹ÉÊÐÐÐ
Çé²éѯºÍ½»Ò×ϵͳÖÐÓöµ½µÄÎÊÌâΪÀý£¬ÒªÔÚʵʱ¼Ç¼1000¶àÖ»¹ÉƱÿ·ÖÖÓ¸üÐÂÒ»´ÎµÄÐÐ
ÇéÊý¾ÝµÄͬʱ£¬ÏìÓ¦´óÁ¿²¢·¢Óû§µÄÊý¾Ý²éѯÇëÇ󡣿¼Âǵ½ÐԼ۱ȺÍÒ×ά»¤ÐÔ£¬ÏµÍ³ÓÖ
ÒªÇóÔÚ»ùÓÚPC·þÎñÆ÷£¬Windows NTƽ̨µÄÈíÓ²¼þ»·¾³ÏÂʵÏÖ¡£¿ª ......

ÍƼö¼¸¸öÍøÉϵÄC/C++×ÊÔ´(zt)

 2009-11-01   17:31:00
1¡¢Standard C£¬°üÀ¨»ù±¾µÄÓï·¨¶¨Ò壬¿âº¯Êý²Î¿¼
http://www-ccs.ucsd.edu/c/
»òÕß
The C Library Reference Guide
http://www.acm.uiuc.edu/webmonkeys/book/c_guide/
2¡¢The UNIX Programming Environment
http://www.iu.hio.no/~mark/unix/unix_toc.html
»ò
The Art of ......

Hacks in C Programming Language

 ÏÂÃæÕâ¸ö³ÌÐòÊä³öʲô£¿
enum {false,true};
int main()
{
int i=1;
do
{
printf("%d\n",i);
i++;
if(i < 15)
continue;
}while(false);
return 0;
}

ÄãÏàÐÅô£¿Ï ......

C ¶Á100¸öÊýµ½Êý×é

 #include <stdio.h>
#define MAX 100
int a[MAX], b[MAX], count = 0;
void rData()
{ int i;
FILE *fp;
fp = fopen("C:\\100.dat", "r");
for (i=0; i<MAX; i++)
fscanf(fp, "%d,", &a[i]);
fclose(fp);
}
 
void main()
{ int i;
rData();
//printf("Âú×ãÌõ¼þµÄÊý= ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ