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

C/C++Èí¼þ¹¤³Ìʦ¾ÍÒµÇóÖ°ÊÖ²á½ÚÑ¡¶þ

 5¡¢#defineºê¶¨Òå¡£ºêÖ»ÊǼòµ¥µÄÎı¾Ìæ»»£¬ºÜÈÝÒ×ÒýÆðÆçÒå¡£
#include <stdio.h>
#define CONS(a,b) (int)(a##e##b)
#define STR(s) #s
int main()
{
   printf(STR(vck));
   printf("\n");
   printf("%d\n",CONS(2,3));
   return 0;
}
ÔÚ±¾³ÌÐòÖУ¬Ê¹ÓÃ#½«ºê²ÎÊý±äΪһ¸ö×Ö·û´®£¬ÓÃ##°ÑÁ½¸öºê²ÎÊýÌùºÏÔÚÒ»Æ𣬽á¹ûΪ£º
vck
2000
6¡¢ºê¶¨ÒåµÃµ½×ֵĸßλºÍµÍλ×Ö½Ú
#define WORD_LO(xxx)  ((byte)((word)(xxx)&255))
#define WORD_HI(xxx)  ((byte)((word)(xxx)>>8))
7¡¢constÓë#defineµÄ¸ö×ÓÌصãÓëÇø±ð
#defineÖ»ÊÇÓÃÀ´×öÎı¾Ìæ»»£¬ÄÇô£¬µ±³ÌÐò½øÐбàÒëµÄʱºò£¬±àÒëÆ÷Ê×ÏȻὫ“#define PI 3.1415826”ÒÔºóËùÓдúÂëÖеÄPIÈ«²¿»»³É“3.1415826”È»ºóÔÙ½øÐбàÒë¡£ÒòΪ#define³¤ÁËÉúÃüÖÜÖÁÓÚ±àÒëÆÚ£¬Ëü´æÔÚÓÚ³ÌÐòµÄ ´úÂë¶Î£¬ÔÚʵ¼Ê³ÌÐòÖУ¬ËüÖ»ÊÇÒ»¸ö³£Êý£¬Ò»¸öÃüÁîÖеIJÎÊý£¬²¢Ã»ÓÐʱ¼äµÄ´æÔÚ¡£
const³£Á¿´æÔÚÓÚ³ÌÐòµÄÊý¾Ý¶ÎÖУ¬²¢ÔÚ¶ÑÕ»ÖзÖÅäÁ˿ռ䣬const³£Á¿ÊÇÒ»¸öRun-timeµÄ¸ÅÄËüÔÚ³ÌÐòÖÐȷȷʵʵ´æÔÚ×Ų¢¿ÉÒÔ±»µ÷Ó㬴«µÝ¡£const³£Á¿ÓÐÊý¾ÝÀàÐÍ£¬¶øºê³£Á¿ÖÐûÓÐÊý¾ÝÀàÐÍ£¬±àÒëÆ÷¿ÉÒÔ¶Ôconst³£Á¿½øÐа²È«¼ì²é¡£


Ïà¹ØÎĵµ£º

C/C++——С±à̸CÓïÑÔº¯ÊýÄÇЩÊÂ(8)

C³ÌÐòÊÇÓÉÒ»×é»òÊDZäÁ¿»òÊǺ¯ÊýµÄÍⲿ¶ÔÏó×é³ÉµÄ¡£ º¯ÊýÊÇÒ»¸ö×ÔÎÒ°üº¬µÄÍê³ÉÒ»¶¨Ïà¹Ø¹¦ÄܵÄÖ´ÐдúÂë¶Î¡£ÏÂÃæС±àºÍ´ó¼Ò·ÖÏíÏÂCÓïÑÔÖеĺ¯Êý¡£
 
1.       gcvtº¯Êý
 
gcvtº¯ÊýµÄ¹¦ÄÜÊǰѸ¡µãÊýת»»³É×Ö·û´®£¬ÆäÓ÷¨ÊÇ£ºchar *gcvt(double value, int ndigit, char *buf);³ÌÐò ......

C/C++——С±à̸CÓïÑÔº¯ÊýÄÇЩÊÂ(10)

C³ÌÐòÊÇÓÉÒ»×é»òÊDZäÁ¿»òÊǺ¯ÊýµÄÍⲿ¶ÔÏó×é³ÉµÄ¡£ º¯ÊýÊÇÒ»¸ö×ÔÎÒ°üº¬µÄÍê³ÉÒ»¶¨Ïà¹Ø¹¦ÄܵÄÖ´ÐдúÂë¶Î¡£ÏÂÃæС±àºÍ´ó¼Ò·ÖÏíÏÂCÓïÑÔÖеĺ¯Êý¡£
 
1. initgraphº¯Êý
initgraphº¯ÊýÊdzõʼ»¯Í¼ÐÎϵͳ£¬ÆäÓ÷¨Îª£ºvoid far initgraph(int far *graphdriver, int far *graphmode,char far *pathtodriver); ³ÌÐòÀý×ÓÈçÏ£ ......

CÎļþÖÐÒýÓÃCPPÎļþʱµÄÎÊÌâ


unzip.c
ÖÐÒýÓÃvalidate.cpp
ÎļþÖеĺ¯ÊýÀ´½øÐÐepub
¾À´í£¬²úÉúµÄÎÊÌ⣺
1.    
validate.cpp
ÖÐʹÓÃiostream.h,
µ«ÊÇC
ÖÐûÓÐÕâ¸öÎļþ
£¬ËùÒÔ²úÉúµÄ´íÎó£º
2>
ÕýÔÚ±àÒë...
2>unzip.c
2>D:\Program
Files\VC\include\cstdio(25) : error C2143:
Óï·¨´íÎó:
ȱÉÙ“{ ......

zz Emacs C

ÈÕÆÚ£º2009-11-21   10:54:22
±¾½ÚÖ÷Òª²Î¿¼£º
    ²ÜÀֵġ¶ÔÚEmacsÏÂÓÃC/C++±à³Ì¡·
    Íõ´¿ÒµµÄ¡¶Emacs Ò»¸öÇ¿´óµÄƽ̨¡·
    emacswiki.org
emcasÄÑѧÒ×Ó㬿ÉÀ©Õ¹ÐÔÇ¿¡£ÓÐÈË°ÑËýµ±×÷ÐÅÑö£¬ÓÐÈËÈÏΪËûÊÇħ¹í£¡Ñ§Ï°Ê×ÏȼÇס»ù±¾µÄ¼üÅÌ¿ì½Ý¼ü£¬Ñ§»á³£Óòå¼þ£¬ ......

Hidden Tricks (C)(091121)

 ÇëÔËÐÐÏÂÃæµÄ´úÂ룬¹Û²ì½á¹û£¬ÓÐÈË˵ÔõôÊÇËÀÑ­»·£¬ÄãͬÒâÂð£¿ÎªÊ²Ã´£¿
 
#include
 <stdio.h>
int
 main()
{
  int
 i = 0;
  int
 name[10] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ