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

CÖ¸Õë

 
Ö¸ÕëÊÇcºÍc++ÖеÄÄѵãºÍÖص㡣ÎÒÖ»¾«Í¨dosϵÄbasic¡£cÓïÑÔµÄÆäËü¸÷ÖÖÌØÐÔ£¬ÔÚbasicÖж¼ÓÐÀàËƵĶ«Î÷¡£Ö»ÓÐÖ¸Õ룬ÊÇbaiscËù²»¾ß±¸µÄ¡£Ö¸ÕëÊÇcµÄÁé»ê¡£
ÎÒ²»ÏëÖظ´´ó¶àÊýÊéÉÏ˵µÃºÜÇå³þµÄ¶«Î÷£¬ÎÒÖ»ÊÇ°ÑÎÒ¿´¹ýµÄÊéÖÐ˵µÃ²»Çå³þ»òûÓÐ˵£¬¶øÎÒÓÖ¾õµÃÎÒÀí½âµÃÓеãµÀÀíµÄ¶«Î÷д³öÀ´¡£ÎÒµÄÄ¿µÄÊÇ£º
1¡£Í¨¹ýдÕâЩ¶«Î÷£¬°ÑÎÒÄÔ´üÖйØÓÚcµÄÄ£ºýµÄ֪ʶÇåÎú»¯¡£
2¡£¸ø³õѧÕßÃÇÒ»µãÌáʾ¡£
3¡£×¬¼¸¸ö¾­ÑéÖµ¡££¨ÒòΪÌùÕâЩ¶«Î÷ûÓйàˮ֮ÏÓ°¡£©
µÚÒ»Õ¡£Ö¸ÕëµÄ¸ÅÄî
Ö¸ÕëÊÇÒ»¸öÌØÊâµÄ±äÁ¿£¬ËüÀïÃæ´æ´¢µÄÊýÖµ±»½âÊͳÉΪÄÚ´æÀïµÄÒ»¸öµØÖ·¡£
Òª¸ãÇåÒ»¸öÖ¸ÕëÐèÒª¸ãÇåÖ¸ÕëµÄËÄ·½ÃæµÄÄÚÈÝ£ºÖ¸ÕëµÄÀàÐÍ£¬Ö¸ÕëËùÖ¸ÏòµÄÀàÐÍ£¬Ö¸ÕëµÄÖµ»òÕß½ÐÖ¸ÕëËùÖ¸ÏòµÄÄÚ´æÇø£¬»¹ÓÐÖ¸Õë±¾ÉíËùÕ¼¾ÝµÄÄÚ´æÇø¡£ÈÃÎÒÃÇ·Ö±ð˵Ã÷¡£
ÏÈÉùÃ÷¼¸¸öÖ¸Õë·Å×Å×öÀý×Ó£º
ÀýÒ»£º
(1)int *ptr;
(2)char *ptr;
(3)int **ptr;
(4)int (*ptr)[3];
(5)int *(*ptr)[4];
Èç¹û¿´²»¶®ºó¼¸¸öÀý×ӵĻ°£¬Çë²ÎÔÄÎÒÇ°¶Îʱ¼äÌù³öµÄÎÄ?lt;<ÈçºÎÀí½âcºÍc
++µÄ¸´ÔÓÀàÐÍÉùÃ÷>>¡£
1¡£Ö¸ÕëµÄÀàÐÍ¡£
´ÓÓï·¨µÄ½Ç¶È¿´£¬ÄãÖ»Òª°ÑÖ¸ÕëÉùÃ÷Óï¾äÀïµÄÖ¸ÕëÃû×ÖÈ¥µô£¬Ê£ÏµIJ¿·Ö¾ÍÊÇÕâ¸öÖ¸ÕëµÄÀàÐÍ¡£ÕâÊÇÖ¸Õë±¾ÉíËù¾ßÓеÄÀàÐÍ¡£ÈÃÎÒÃÇ¿´¿´ÀýÒ»Öи÷¸öÖ¸ÕëµÄÀàÐÍ£º
(1)int *ptr; //Ö¸ÕëµÄÀàÐÍÊÇint *
(2)char *ptr; //Ö¸ÕëµÄÀàÐÍÊÇchar *
(3)int **ptr; //Ö¸ÕëµÄÀàÐÍÊÇ int **
(4)int (*ptr)[3]; //Ö¸ÕëµÄÀàÐÍÊÇ int(*)[3]
(5)int *(*ptr)[4]; //Ö¸ÕëµÄÀàÐÍÊÇ int *(*)[4]
ÔõôÑù£¿ÕÒ³öÖ¸ÕëµÄÀàÐ͵ķ½·¨ÊDz»ÊǺܼòµ¥£¿
2¡£Ö¸ÕëËùÖ¸ÏòµÄÀàÐÍ¡£
µ±Äãͨ¹ýÖ¸ÕëÀ´·ÃÎÊÖ¸ÕëËùÖ¸ÏòµÄÄÚ´æÇøʱ£¬Ö¸ÕëËùÖ¸ÏòµÄÀàÐ;ö¶¨Á˱àÒëÆ÷½«°ÑÄÇƬÄÚ´æÇøÀïµÄÄÚÈݵ±×öʲôÀ´¿´´ý¡£
´ÓÓï·¨ÉÏ¿´£¬ÄãÖ»Ðë°ÑÖ¸ÕëÉùÃ÷Óï¾äÖеÄÖ¸ÕëÃû×ÖºÍÃû×Ö×ó±ßµÄÖ¸ÕëÉùÃ÷·û *È¥µô£¬Ê£ÏµľÍÊÇÖ¸ÕëËùÖ¸ÏòµÄÀàÐÍ¡£ÀýÈ磺
(1)int *ptr; //Ö¸ÕëËùÖ¸ÏòµÄÀàÐÍÊÇint
(2)char *ptr; //Ö¸ÕëËùÖ¸ÏòµÄµÄÀàÐÍÊÇchar
(3)int **ptr; //Ö¸ÕëËùÖ¸ÏòµÄµÄÀàÐÍÊÇ int *
(4)int (*ptr)[3]; //Ö¸ÕëËùÖ¸ÏòµÄµÄÀàÐÍÊÇ int()[3]
(5)int *(*ptr)[4]; //Ö¸ÕëËùÖ¸ÏòµÄµÄÀàÐÍÊÇ int *()[4]
ÔÚÖ¸ÕëµÄËãÊõÔËËãÖУ¬Ö¸ÕëËùÖ¸ÏòµÄÀàÐÍÓкܴóµÄ×÷Óá£
Ö¸ÕëµÄÀàÐÍ(¼´Ö¸Õë±¾ÉíµÄÀàÐÍ)ºÍÖ¸ÕëËùÖ¸ÏòµÄÀàÐÍÊÇÁ½¸ö¸ÅÄî¡£µ±Äã¶ÔCÔ½À´Ô½ÊìϤʱ£¬Äã»á·¢ÏÖ£¬°ÑÓëÖ¸Õë½ÁºÍÔÚÒ»ÆðµÄ"ÀàÐÍ"Õâ¸ö¸ÅÄî·Ö³É"Ö¸ÕëµÄÀàÐÍ"ºÍ"Ö¸ÕëËùÖ¸ÏòµÄÀàÐÍ"Á½¸ö¸ÅÄî£


Ïà¹ØÎĵµ£º

c/c++Èí¼þ¿ª·¢µÄ×¢ÒâÊÂÏî

µÚÒ»²¿·ÖÈí¼þ±à³ÌµÄʱ¼ä·ÖÅä¸Å¿ö
   ¸ßЧÂʵijÌÐòÔ±²¢²»ÊÇÇüüÅ̵ÄËٶȱȱðÈ˿죬¶øÊÇËûÓÐ×ÅÁ¼ºÃµÄ±à³ÌÏ°¹ß£¬½ÚÊ¡Á˱ðÈËÀ˷ѵÄʱ¼ä¡£Òò´Ë£¬ÒªÏëÌá¸ß×Ô¼ºµÄ±à³ÌЧÂÊ£¬¸ù±¾ÔÚÓÚÔõôÉÙÀË·Ñʱ¼ä¡£Ö»ÒªÄܰѱðÈËÀ˷ѵÄʱ¼ä½ÚÊ¡ÏÂÀ´£¬ÄãµÄЧÂʾͿÉÒÔ¿ì¹ý±ðÈË£¬ÉõÖÁÊý±¶ÓÚ±ðÈË¡£ÒªÏë½Úʡʱ¼ä£¬µ±È»Ê×ÏÈÐèÒªÃ÷°×±à³ÌÖкķ ......

TURBO C 2.0 Îļþ·ÖÀà

 
 2009-12-24          21:15:41
 
TURBO C 2.0 Îļþ·ÖÀà
 
·Ô­´´·
ÍøÉÏÏÂÔØTURBO C 2.0ºÜ»ìÂÒ£¬Ò»Ö±Ïë°ÑËýÕûÀíһϣ¬Ê¹¸÷¸öʵÀý·Ö¿ª£¬¸÷¸ö²»Í¬²¿·Ö·Ö¿ª¡£¶Ï¶ÏÐøÐø»¨Á˺ܳ¤Ê±¼ä£¬µ½½ñÌìÖÕÓÚÕûÀíÍêÁË¡£·¢Ìû³öÀ´¸ø´ó¼Ò¿´¿´¡£ÓÐÐèÒªµÄ ......

´¿CʵÏÖc++Àà

//#include "stdafx.h"
/*
ÃèÊö:´¿cÄ£ÄâÀà,´¿c±àдc++Àà,´¿cʵÏÖc++ÀàµÄ¼òµ¥·¶Àý,½á¹¹Ä£ÄâÀà,struct ±àдclass.
c±àдÀàÊÇʵÏÖ´¿c±àдcom×é¼þµÄ»ù´¡¡£
*/
#include <stdio.h>
typedef struct _Vtbl
{
    void (*AddRef)(struct CObject* obj,int);//ËùÓеĺ¯ÊýµÄµÚÒ»¸ö²ÎÊýÀàËÆclassµÄÒþÄäµÄ ......

c/c++ ×óÖµ ÓÒÖµÌÖÂÛ

×óÖµÐÔ£¨lvalueness£©ÔÚC/C++ÖÐÊDZí´ïʽµÄÒ»¸öÖØÒªÊôÐÔ¡£Ö»ÓÐͨ¹ýÒ»¸ö×óÖµ±í´ïʽ²ÅÄÜÀ´ÒýÓü°¸ü¸ÄÒ»¸ö¶ÔÏó£¨object£©µÄÖµ¡££¨Ä³Ð©Çé¿öÏ£¬ÓÒÖµ±í´ïʽҲÄÜÒýÓã¨refer£©µ½Ä³Ò»¸ö¶ÔÏ󣬲¢ÇÒ¿ÉÄܼä½ÓÐ޸ĸöÔÏóµÄÖµ£¬ºóÊö£©¡£
    ºÎν¶ÔÏó£¿Èç¹ûûÓÐÃ÷ȷ˵Ã÷£¬ÕâÀï˵µÄ¶ÔÏ󣬺ÍÏÁÒåµÄÀà/¶ÔÏó£¨class/object£© ......

C/C++ÖÐnearºÍfarµÄÇø±ð

C/C++ÖÐnearºÍfarµÄÇø±ð
      ¹Ø¼ü×ÖnearºÍfarÊÜÄ¿±ê¼ÆËã»úÌåϵ½á¹¹µÄÓ°Ï졣Ŀǰ±à³ÌÖÐʹÓò»¶à¡£
      near¹Ø¼ü×Ö´´½¨Ò»¸öÖ¸Ïò¿ÉÑ°Ö·ÄÚ´æµÍ¶Ë²¿·ÖµÄÄ¿±êÖ¸Õë¡£ÕâЩָÕëÕ¼ÓÃÄÚ´æµÄµ¥Ò»×Ö½Ú£¬²¢ÇÒËûÃÇÄܹ»Ö¸ÏòµÄÄÚ´æµ¥Ôª±»ÏÞÖƵ½256¸öλÖã¬Í¨³£ÊÇÔÚ0x0000~0x00ff·¶Î ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ