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

ÈçºÎÅжÏCµÄÊý¾ÝÀàÐÍ

±ÈÈç typedef ElemType int;
ÔõôÅÐ¶Ï ElemType ÊÇÕûÐÍÄØ£¿
»òÕß
ElemType i;
ÔÚ¸ø i ¸³ÖµÇ°ÔõôÅÐ¶Ï i ÊÇʲôÀàÐÍÄØ£¿
±àÒëµÄʱºò±àÒëÆ÷ÖªµÀ°¡¡£
±àÒëÆ÷»áÏÈÕÒµ½typedef ElemType int; È»ºó²ÅÄܹ»¸øElemType i;µÄi·ÖÖ¸¶¨¶¨´óСµÄÄÚ´æ

ÎÞ·¨ÅжÏ.

C++¿ÉÒÔÓÐtypeidÅжϣ¬CºÃÏñ²»Ì«ºÃд³ÌÐòÅжÏ

ÒýÓÃ
C++¿ÉÒÔÓÐtypeidÅжϣ¬CºÃÏñ²»Ì«ºÃд³ÌÐòÅжÏ

ÎÒûÓÐÌý˵¹ýÔÚCÓïÑÔÖÐÈçºÎÅж¨
ÆÚ´ý¥ϸßÊÖ

ÒýÓÃ
ÒýÓà 3 Â¥ thefirstz µÄ»Ø¸´:
C++¿ÉÒÔÓÐtypeidÅжϣ¬CºÃÏñ²»Ì«ºÃд³ÌÐòÅжÏ

ÎÒûÓÐÌý˵¹ýÔÚCÓïÑÔÖÐÈçºÎÅж¨
ÆÚ´ý¥ϸßÊÖ
up~~

CÊÇû·¨ÅжϵÄ

Ö»ÄÜ×Ô¼º·ÖÎö


Ïà¹ØÎÊ´ð£º

ÇëÎÊC/SµÄÎïÀí½á¹¹£¿

ÇëÎÊÏÂC/SµÄÎïÀí½á¹¹£¬ÊDz»ÊÇÕâÑùµÄ£º

һ̨·þÎñÆ÷£¬ÉÏÃæÖ»ÔËÐÐÒ»¸öÊý¾Ý¿â£¬È»ºóÊǶà¸ö¿Í»§¶Ë»ú£¬Ã¿¸ö»ú×ÓÉÏ°²×°Ò»¸ö¿Í»§¶ËÈí¼þ£¬ÔÙ°ÑÊý¾Ý¿âÁ¬½ÓÓû§ÃûÃÜÂë¸øÿ¸ö¿Í»§¶Ë£¬Õâ¸öÃÜÂëÓÉÈí¼þ¼ÓÃÜ·ÅÔÚ¿Í»§¶Ë£¬Óû§µ ......

Õâ¸öÊÇʲôÒâ˼£¬unsigned int c:2, d:1;

struct s1 {
char ch, *ptr;
union {
short a, b;
unsigned int c:2, d:1;
}
struct s1 *next;
};


Ö÷Òª¿´²»¶®·ûºÅ¡¡:

Çë´ïÈËÖ¸µãÒ»¶þ
http://blog.cechina.cn/true ......

extern "C"ÎÊÌâ

/*-----------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++ Ⱥ »¶Ó­ ÐÂÊÖ¸ßÊÖ ¼ÓÈë

Ä㻹ÔÚÐÂÊֽ׶ÎÅÇ»²Âð£¿Ä㻹ÔÚ·¢³îÓ¦¸ÃÔõô¼ÌÐøѧϰCºÍC++Âð£¿
Ⱥ 29152388 ΪÄã½â¿ªÒɻ󣬻¶Ó­ÐÂÊÖÀÏÊֵļÓÈ룬ÄãµÄ¼ÓÈë¾ÍÊÇÆäËüÈËѧϰµÄ¶¯Á¦
¥ϳöÃŲȱã±ã

ËãÄãºÝ

ÐÂÊֵĸ£Òô°¡···ÖÕÓÚ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ