CÈô¸ÉʵÓÃС¼¼ÇÉ
Visual C++6.0(5.0)¿ª·¢¹¤¾ß¹¦Äܷdz£Ç¿´ó£¬µ«ÊǶÔÓÚ³õѧÕßÀ´Ëµ£¬È´Óкܶàϸ½ÚµÄÎÊÌâÐèҪעÒâ¡£×÷ÕßËѼ¯ÕûÀíÁËÒÔÏÂһЩʵÓÃС¼¼ÇÉ£¬Ï£Íû¶Ô³õѧÕßÓÐËù°ïÖú¡£
1:ʹÓÃvc¿ª·¢ÏîĿʱ£¬³£»áÓöµ½ÕâÖÖÇé¿ö£º
¼´Ã÷Ã÷Ö»¸Ä¶¯ÁËÒ»¸öÎļþ£¬È´Òª°ÑÕû¸öÏîÄ¿È«²¿ÖØбàÒëÁ¬½ÓÒ»´Î¡£¸Õ¸ÕÁ¬½ÓºÃ£¬Ò»ÔËÐУ¬ÓÖÌáʾÖØбàÒëÁ¬½ÓÒ»´Î£¬·Ç³£ÌÖÑá¡£ÕâÊÇÒòΪ³öÏÖÁËδÀ´ÎļþµÄÔµ¹Ê¡£
½â¾ö·½·¨£º
ÕÒ³ö¶ÔÓ¦Îļþ¼ÐϵÄdebugĿ¼£¬½«Î´À´ÎļþÈ«²¿delete, ÔÙrebuild allÒ»´Î¡£(δÀ´ Îļþ¼´Æä´´½¨ºÍÐÞ¸Äʱ¼ä¶¼±Èϵͳʱ¼ä¿¿ºó£©
2:ÓÐʱ£¬workspaceÖеÄclassviewÏÔʾ»ìÂÒ¡£Æä±íÏÖÈçÏ£º
(1):Ìí¼ÓµÄ³ÉÔ±±äÁ¿»òº¯Êý²»ÄÜÏÔʾ£»
(2):¼´Ê¹ÏÔʾ³öÀ´Á˱äÁ¿»òº¯Êý£¬Ë«»÷ºó²»ÄÜÌøÖÁÕýÈ·µÄλÖá£
½â¾ö·½·¨£º
ɾ³ý.ncbÎļþ£¬ÔÙrebuild all.
3:ÈçºÎ¸É¾»µÄɾ³ýÒ»¸öÀࣿ
1:ÏÈ´ÓworkspaceÖеÄfileviewÖÐɾ³ý¶ÔÓ¦µÄ.hºÍ.cppÎļþ¡£
2.ÔٹرÕÏîÄ¿£¬´Óʵ¼ÊµÄÎļþ¼ÐÖÐɾ³ý¶ÔÓ¦µÄ.hºÍ.cppÎļþ¡£
3.ÔÙɾ³ý.clwÎļþ¡£
´ò¿ªÏîÄ¿£¬rebuild all¡£
4:³õѧÕß³£ÓÐÕâÑùµÄÒÉ»ó£º
Ö±½ÓÍû¹¤³ÌÎļþÀï¼ÓÈëÒ»¸öcppÔÎļþÔÙ±àÒëÁ¬½ÓµÄ»°ÀÏÊÇÌáʾûÓÐÕÒµ½Ô¤±àÒëÍ·
½â¾ö·½·¨£º
#include "stdafx.h"
5:ÈçºÎÏòÏîÄ¿ÖмÓÈë×Ô¼º¶¨ÒåµÄÀà?
·½·¨ºÜ¶à£¬½éÉÜÒ»¸ö¼ò±ãµÄ£º
Ñ¡Ôñinsert/new class²Ëµ¥
µ¯³ö¶Ô»°¿ò£»
Ñ¡Ôñclass typeΪgeneric;
ÊäÈëÀàÃû¡£
µ±È»£¬Ò²¿ÉÒÔ×Ô¼º¾ö¶¨¸ÃÀàµÄ»ùÀà
6:ÈçºÎÔÚ¹¤×÷Çø(workspace)µ¼Èë¶à¸öÏîÄ¿(project)?
ÔÚ´ò¿ªÒ»¸öÏîÄ¿(*.dspÎļþ)ºó£¬ÔÚÀûÓÓproject” ²Ëµ¥ÏÂinsert project into workspace ×Ӳ˵¥Ñ¡ÔñÁíÒ»¸öÏîÄ¿Îļþ£¨*.dspÎļþ£©£¬¿É²åÈëÁíÒ»¸öÏîÄ¿¡£
ÔÚclassview ÊÓͼÖУ¬ÓÒ¼ü¿ÉÒÔ¼¤»îÆäÖÐij¸öÏîÄ¿£¬¹¤×÷Çø²åÈë¶à¸öÏîÄ¿ÄÜ·½±ã²»Í¬ÏîÄ¿¼ä¿½±´´úÂë¡¢×ÊÔ´µÈ¡£
7: ÔÚclassview ÊÓͼÖÐÀàÌ«¶àÈçºÎÕûÀí?
ÎÒÃÇ¿ÉÒÔ
Ïà¹ØÎĵµ£º
1.strlen()
ʵÏÖ£º
size_t strlen(const char *s)
{
size_t n;
for(n = 0; *s != '\0'; s++)
++n;
return n;
  ......
¿¼²éÒ»¸ö³õ¼¶Ç¶Èëʽϵͳ¿ª·¢ÈËÔ±µÄC»ù±¾¹¦£¬¸½Óдð°¸ÌâÄ¿ÓÉ×ÊÉîǶÈëʽϵͳר¼ÒÄⶨ,Ä¿µÄÊÇ¿¼²éÈëÃż¶µÄǶÈëʽÈí¼þ¿ª·¢ÈËÔ± Gavin ShawÌṩÏêϸ½â´ð
±àÕß°´:·Ç³£»ù±¾¹ØÓÚCÓïÑÔµÄÎÊÌâ,Ò»¸öÐÅÏ¢Àà(¼ÆËã»ú,×ÊѶ¹¤³Ì,µç×Ó¹¤³Ì, ͨÐŹ¤³Ì)רҵµÄ±¾¿Æ±ÏÒµÉúÓ¦¸Ã´ïµ½µÄˮƽ¡£ÌâÄ¿²»ÄÑ,È«²¿¶¼ÄÜ¿ìËٵشðÍ꣬µ±È»Ò²ÐèÒªÒ»¶¨µ ......
±¾ÎĵÄÄÚÈÝÊÇ Win32 API£¨ÌرðÊǽø³Ì¡¢Ï̺߳͹²ÏíÄÚ´æ·þÎñ£©µ½ POWER ÉÏ Linux µÄÓ³Éä¡£±¾ÎÄ¿ÉÒÔ°ïÖúÄúÈ·¶¨ÄÄÖÖÓ³Éä·þÎñ×îÊʺÏÄúµÄÐèÒª¡£×÷ÕßÏòÄúÏêϸ½éÉÜÁËËûÔÚÒÆÖ² Win32 C/C++ Ó¦ÓóÌÐòʱÓöµ½µÄ API Ó³Éä¡£
¸ÅÊö
Óкܶ෽ʽ¿ÉÒÔ½« Win32 C/C++ Ó¦ÓóÌÐòÒÆÖ²ºÍǨÒƵ½ pSeries ƽ̨¡£Äú¿ÉÒÔʹÓÃÃâ·ÑÈí¼þ»òÕßµÚÈý·½¹¤¾ßÀ´ ......
ÒÔÇ°Ôø¾×ܽá¹ýһƪ(http://www.cppblog.com/franksunny/archive/2007/11/29/37510.html
)£¬¹ØÓÚÔÚ
C
ÖÐÈçºÎµ÷ÓÃ
C++
µÄ´úÂ룬µ±Ê±²¢Î´×öÍêÈ«µÄÕ¹¿ª£¬Ö»ÊǼòµ¥µÄ×öÁËϵ÷ÊÔ£¬×î½ü¿´µ½Ò»¸öÌâÄ¿ÒªÇóʵÏÖ
C
ºÍ
C++
ÖдúÂëµÄ»¥Ïàµ÷Óã¬Æä½á¹ûËäÈ»¶¼ÊÇͨ¹ý
extern “C”
À´ÊµÏÖ
£¬µ«ÊǾßÌ廹ÊÇÓÐЩ²î±ðµÄ¡ ......
- ҪʹÓöÏÑÔ¶Ôº¯Êý²ÎÊý½øÐÐÈ·ÈÏ
- ΪÁ˲»±ØÒªµÄ¿ªÏú£¬¿ÉÒÔ½öʹÓöÏÑÔ£¬¶ø²»Òªreturn
ÍøÉÏÓÐÈËдµÄstrcpy´úÂ룬×öÁËÌ«¶àµÄ³ö´í´¦Àí£¬µ¼ÖÂÐÔÄܵÍÏ£¬Æäʵû±ØÒª£¬ÓÃassert¾ÍÐÐÁË£¬ÕâÑùÔÚdebugģʽÏÂÄܲ¶×½´íÎó£¬releaseÏÂÓÖ²»Ó°ÏìÐÔÄÜ¡£
- ÊéÉÏÌṩµÄmemcpyµÄ·¶Àý
void memcpy(void* pvT ......