ÈçºÎÅжÏCµÄÊý¾ÝÀàÐÍ
±ÈÈç typedef ElemType int;
ÔõôÅÐ¶Ï ElemType ÊÇÕûÐÍÄØ£¿
»òÕß
ElemType i;
ÔÚ¸ø i ¸³ÖµÇ°ÔõôÅÐ¶Ï i ÊÇʲôÀàÐÍÄØ£¿
±àÒëµÄʱºò±àÒëÆ÷ÖªµÀ°¡¡£
±àÒëÆ÷»áÏÈÕÒµ½typedef ElemType int; È»ºó²ÅÄܹ»¸øElemType i;µÄi·ÖÖ¸¶¨¶¨´óСµÄÄÚ´æ
ÎÞ·¨ÅжÏ.
C++¿ÉÒÔÓÐtypeidÅжϣ¬CºÃÏñ²»Ì«ºÃд³ÌÐòÅжÏ
ÎÒûÓÐÌý˵¹ýÔÚCÓïÑÔÖÐÈçºÎÅж¨
ÆÚ´ý¥ϸßÊÖ
up~~
CÊÇû·¨ÅжϵÄ
Ö»ÄÜ×Ô¼º·ÖÎö
Ïà¹ØÎÊ´ð£º
ÇëÎÊÏÂC/SµÄÎïÀí½á¹¹£¬ÊDz»ÊÇÕâÑùµÄ£º
һ̨·þÎñÆ÷£¬ÉÏÃæÖ»ÔËÐÐÒ»¸öÊý¾Ý¿â£¬È»ºóÊǶà¸ö¿Í»§¶Ë»ú£¬Ã¿¸ö»ú×ÓÉÏ°²×°Ò»¸ö¿Í»§¶ËÈí¼þ£¬ÔÙ°ÑÊý¾Ý¿âÁ¬½ÓÓû§ÃûÃÜÂë¸øÿ¸ö¿Í»§¶Ë£¬Õâ¸öÃÜÂëÓÉÈí¼þ¼ÓÃÜ·ÅÔÚ¿Í»§¶Ë£¬Óû§µ ......
struct s1 {
char ch, *ptr;
union {
short a, b;
unsigned int c:2, d:1;
}
struct s1 *next;
};
Ö÷Òª¿´²»¶®·ûºÅ¡¡:
Çë´ïÈËÖ¸µãÒ»¶þ
http://blog.cechina.cn/true ......
/*-----------c.h--------------*/
#ifndef _C_H_
#define _C_H_
extern "C" int add(int x, int y);
#endif
/*-----------c.c--------------*/
int add(int x, int y){
return ......
Ä㻹ÔÚÐÂÊֽ׶ÎÅÇ»²Âð£¿Ä㻹ÔÚ·¢³îÓ¦¸ÃÔõô¼ÌÐøѧϰCºÍC++Âð£¿
Ⱥ 29152388 ΪÄã½â¿ªÒɻ󣬻¶ÓÐÂÊÖÀÏÊֵļÓÈ룬ÄãµÄ¼ÓÈë¾ÍÊÇÆäËüÈËѧϰµÄ¶¯Á¦
¥ϳöÃŲȱã±ã
ËãÄãºÝ
ÐÂÊֵĸ£Òô°¡···ÖÕÓÚ ......