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

¡¾×ª¡¿c´úÂëÓÅ»¯


1¡¢Ñ¡ÔñºÏÊʵÄËã·¨ºÍÊý¾Ý½á¹¹
Ñ¡ÔñÒ»ÖÖºÏÊʵÄÊý¾Ý½á¹¹ºÜÖØÒª£¬Èç¹ûÔÚÒ»¶ÑËæ»ú´æ·ÅµÄÊýÖÐʹÓÃÁË´óÁ¿µÄ²åÈëºÍɾ³ýÖ¸ÁÄÇʹÓÃÁ´±íÒª¿ìµÃ¶à¡£Êý×éÓëÖ¸ÕëÓï¾ä¾ßÓÐÊ®·ÖÃÜÇеĹØϵ£¬Ò»°ãÀ´Ëµ£¬Ö¸Õë±È½ÏÁé»î¼ò½à£¬¶øÊý×éÔò±È½ÏÖ±¹Û£¬ÈÝÒ×Àí½â¡£¶ÔÓڴ󲿷ֵıàÒëÆ÷£¬Ê¹ÓÃÖ¸Õë±ÈʹÓÃÊý×éÉú³ÉµÄ´úÂë¸ü¶Ì£¬Ö´ÐÐЧÂʸü¸ß¡£
ÔÚÐí¶àÖÖÇé¿öÏ£¬¿ÉÒÔÓÃÖ¸ÕëÔËËã´úÌæÊý×éË÷Òý£¬ÕâÑù×ö³£³£ÄܲúÉúÓÖ¿ìÓ̵ֶĴúÂë¡£ÓëÊý×éË÷ÒýÏà±È£¬Ö¸ÕëÒ»°ãÄÜʹ´úÂëËٶȸü¿ì£¬Õ¼Óÿռä¸üÉÙ¡£Ê¹ÓöàάÊý×éʱ²îÒì¸üÃ÷ÏÔ¡£ÏÂÃæµÄ´úÂë×÷ÓÃÊÇÏàͬµÄ£¬µ«ÊÇЧÂʲ»Ò»Ñù¡£
Êý×éË÷Òý Ö¸ÕëÔËËã
For(;;){              p=array;
A=array[t++];        for(;;){
                      a=*(p++);
......               ......
} }
Ö¸Õë·½·¨µÄÓŵãÊÇ£¬ array µÄµØַÿ´Î×°ÈëµØÖ· p ºó£¬ÔÚÿ´ÎÑ­»·ÖÐÖ»Ðè¶Ô p ÔöÁ¿²Ù×÷¡£ÔÚÊý×éË÷Òý·½·¨ÖУ¬Ã¿´ÎÑ­»·Öж¼±ØÐë¸ù¾Ý t ÖµÇóÊý×éϱêµÄ¸´ÔÓÔËËã¡£
2¡¢Ê¹Óþ¡Á¿Ð¡µÄÊý¾ÝÀàÐÍ
Äܹ»Ê¹ÓÃ×Ö·ûÐÍ (char) ¶¨ÒåµÄ±äÁ¿£¬¾Í²»ÒªÊ¹ÓÃÕûÐÍ (int) ±äÁ¿À´¶¨Ò壻Äܹ»Ê¹ÓÃÕûÐͱäÁ¿¶¨ÒåµÄ±äÁ¿¾Í²»ÒªÓó¤ÕûÐÍ (long int) £¬Äܲ»Ê¹Óø¡µãÐÍ (float) ±äÁ¿¾Í²»ÒªÊ¹Óø¡µãÐͱäÁ¿¡£µ±È»£¬ÔÚ¶¨Òå±äÁ¿ºó²»Òª³¬¹ý±äÁ¿µÄ×÷Ó÷¶Î§£¬Èç¹û³¬¹ý±äÁ¿µÄ·¶Î§¸³Öµ£¬ C ±àÒëÆ÷²¢²»±¨´í£¬µ«³ÌÐòÔËÐнá¹ûÈ´´íÁË£¬¶øÇÒÕâÑùµÄ´íÎóºÜÄÑ·¢ÏÖ¡£
ÔÚ ICCAVR ÖУ¬¿ÉÒÔÔÚ Options ÖÐÉ趨ʹÓà printf ²ÎÊý£¬¾¡Á¿Ê¹Óûù±¾ÐͲÎÊý (%c ¡¢ %d ¡¢ %x ¡¢ %X ¡¢ %u ºÍ %s ¸ñʽ˵Ã÷·û ) £¬ÉÙÓó¤ÕûÐͲÎÊý (%ld ¡¢ %lu ¡¢ %lx ºÍ %lX ¸ñʽ˵Ã÷·û ) £¬ÖÁÓÚ¸¡µãÐ͵IJÎÊý (%f) Ôò¾¡Á¿²»ÒªÊ¹Óã¬ÆäËü C ±àÒëÆ÷Ò²Ò»Ñù¡£ÔÚÆäËüÌõ¼þ²»±äµÄÇé¿öÏ£¬Ê¹Óà %f ²ÎÊý£¬»áʹÉú³ÉµÄ´úÂëµÄÊýÁ¿Ôö¼ÓºÜ¶à£¬Ö´ÐÐËٶȽµµÍ¡£
3¡¢¼õÉÙÔËËãµÄÇ¿¶È
£¨1£©²é±í(ÓÎÏ·³ÌÐòÔ±±ØÐÞ¿Î)
Ò»¸ö´ÏÃ÷µÄÓÎÏ·´óϺ£¬»ù±¾Éϲ»»áÔÚ×Ô¼ºµÄÖ÷Ñ­»·Àï¸ãʲôÔËË㹤×÷£¬¾ø¶ÔÊÇÏȼÆËãºÃÁË£¬ÔÙµ½Ñ­»·Àï²é±í¡£¿´ÏÂÃæµÄÀý×Ó£º
¾É´úÂ룺
long factorial(int i)
{
if (i == 0)
return 1;
else
return i * factorial(i - 1);
}
дúÂ룺
static long factorial_table[] =
{1 £¬ 1 £¬ 2 £¬ 6 £¬ 24 £¬ 120 £¬ 720 /* etc */ };
long factorial(int i)
{
return factori


Ïà¹ØÎĵµ£º

¡ïÔõÑùѧϰCÓïÑÔ(Ï׸øÃÔãµÄC°®ºÃÕß)¡ï

Ò» £¬ÔõÑùѧϰCÓïÑÔ
     ºÜ¶àÈ˶ÔѧϰCÓïÑԸе½ÎÞ´ÓÏÂÊÖ£¬¾­³£ÎÊÎÒͬһ¸öÎÊÌ⣺¾¿¾¹ÔõÑùѧϰCÓïÑÔ£¿ÎÒÊÇÒ»¸ö½Ìʦ£¬ÒѾ­¿ª·¢Á˺ܶàÄêµÄ³ÌÐò£¬ºÍºÜ¶à¸Õ¸ÕÆð²½µÄÈËÒ»Ñù£¬Ñ§Ï°µÄµÚÒ»¸ö¼ÆËã»úÓïÑÔ¾ÍÊÇCÓïÑÔ¡£¾­¹ýÕâЩÄêµÄ¿ª·¢£¬ÎÒÉîÉîµÄÌå»áµ½CÓïÑÔ¶ÔÓÚÒ»¸ö³ÌÐòÉè¼ÆÈËÔ±¶àôµÄÖØÒª£¬Èç¹û²»¶®CÓ ......

cµÄIO

²¿·ÖÄÚÈÝÀ´×Ôhttp://www.programfan.com/article/2674.htmlÒÔ¼°http://www.programfan.com/article/showarticle.asp?id=2675
²¿·Ö·­ÒëÀ´×ÔTUM skript£¨c programmieren);
1.printf()£º
ǧÍò²»ÒªÒÅÍüÔÚprintf()µÄ×îºóÌí¼ÓNewLine"\n"¡£ÒòΪÔÚcµÄ¿âÖÐͨ³£ÓÐÐлº´æ»úÖÆ£¬Õâ¸öÒâζ×ÅÖ»Óе±Ò»ÐеÄÊäÈëͨ¹ý"\n"½áÊø֮ǰ£¬ÐеÄÊ ......

C/S Óë B/S µÄÇø±ð


 C/S Óë B/S 
£±£®Ó²¼þ»·¾³²»Í¬: 
¡¡¡¡C/S Ò»°ã½¨Á¢ÔÚרÓõÄÍøÂçÉÏ, С·¶Î§ÀïµÄÍøÂç»·¾³, ¾ÖÓòÍøÖ®¼äÔÙͨ¹ýרÃÅ·þÎñÆ÷ÌṩÁ¬½ÓºÍÊý¾Ý½»»»·þÎñ.
¡¡¡¡B/S ½¨Á¢ÔÚ¹ãÓòÍøÖ®ÉϵÄ, ²»±ØÊÇרÃŵÄÍøÂçÓ²¼þ»·¾³,ÀýÓëµç»°ÉÏÍø, ×âÓÃÉ豸. ÐÅÏ¢×Ô¼º¹ÜÀí. ÓбÈC/S¸üÇ¿µÄÊÊÓ¦·¶Î§, Ò»°ãÖ»ÒªÓвÙ×÷ϵͳºÍä¯ÀÀÆ÷¾ÍÐÐ&n ......

c/c++void¼°voidÖ¸ÕëÀàÐÍ

c/c++void¼°voidÖ¸ÕëÀàÐÍ
¡¡¡¡1.¸ÅÊöÐí¶à³õѧÕ߶ÔC/C++ÓïÑÔÖеÄvoid¼°voidÖ¸ÕëÀàÐͲ»ÉõÀí½â£¬Òò´ËÔÚʹÓÃÉϳöÏÖÁËһЩ´íÎó¡£±¾ÎĽ«¶Ôvoid¹Ø¼ü×ÖµÄÉî¿Ìº¬Òå½øÐнâ˵£¬²¢ÏêÊövoid¼°voidÖ¸ÕëÀàÐ͵ÄʹÓ÷½·¨Óë¼¼ÇÉ¡£
¡¡¡¡2.voidµÄº¬ÒåvoidµÄ×ÖÃæÒâ˼ÊÇ“ÎÞÀàÐÍ”£¬void *ÔòΪ“ÎÞÀàÐÍÖ¸Õ딣¬void *¿ÉÒÔÖ¸ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ