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

ÔÚVC6ÖÐÎÒÈçºÎÖªµÀ´úÂëÊÇ°´C±àÒëµÄ»¹ÊÇ°´C++±àÒëµÄ£¿

ÔÚVC6ÖÐÎÒÈçºÎÖªµÀ´úÂëÊÇ°´C±àÒëµÄ»¹ÊÇ°´C++±àÒëµÄ£¿
ÎÒÏë Ó¦¸ÃÊǸúÄãµÄÔ´ÎļþµÄÀ©Õ¹ÃûÓйذÉ

ͨ³£ÊǸù¾ÝÀ©Õ¹Ãû¡£
ÐèÒªÇø±ðÂð£¿

¾­³£»ìÓ㬻¹Õæû¹ØÐĹýÕâÎÊÌâ

Ò»°ã¾ÍÊÇ¿´Ô´Îļþºó׺Ãû£¬²»¹ýÔÚC++ÖÐÄãÒ²¿ÉÒÔÖ¸¶¨°´c·½Ê½±àÒë

a)Îļþºó׺
b)¿´ÊÇ·ñijЩֻÓÐ C++ Ö§³ÖµÄÓï·¨£¬²»È·¶¨µÄ»°¿ÉÒÔÄô¿ C ±àÒëÆ÷±àÒëһϡ£
Æäʵ³ýÁËÌض¨Êý¾Ý³¤¶ÈµÄÇé¿ö£¬°´ÕÕ C++ À´´¦Àí×ÜÊDz»´íµÄ¡£

Èç¹ûÎļþÀ©Õ¹Ãû.c°´C±àÒë
Èç¹ûÎļþÀ©Õ¹Ãû.cppÖÐÆÕͨ´úÂë°´C++±àÒë
Èç¹ûÎļþÀ©Õ¹Ãû.cppÖб»extern "C"{}°üº¬µÄ´úÂë°´C±àÒë

°´À©Õ¹Ãû°É

Çë½ÌÂ¥Éϸ÷룬ÎÒÔ­À´ÔÚVC6ÀïÉú³ÉµÄ¿ØÖÆ̨³ÌÐò£¬È±Ê¡mainº¯ÊýÊÇ·ÅÔÚ.CPPÎļþÀstdafxºó׺ÃûÒ²ÊÇ.cpp¡£ÏÖÔÚÎÒ°ÑÕâÁ½¸öÎļþµÄºó׺Ãû¶¼¸Ä³É.c£¬ÈçÏÂͼËùʾ£º



¿ÉÊÇbuildµÄʱºò³ö´í£¬c:\¡­¡­\ptass\ptass.c(4) : fatal error C1853: 'Debug/PtAss.pch' is not a precompiled header file created with this compiler

ÇëÎÊÕâÖÖÇé¿öÈçºÎ´¦Àí£¿

Çå³ýËùÓбàÒë²úÉúµÄÎļþ£¬È磺Debug/PtAss.pchµÈ£¬ÔÙÖØбàÒë

лл¥ÉÏ£¬ÎÒ°ÑDebug×ÓĿ¼ÏµÄËùÓÐÎļþ¶¼É¾ÁË£¬»¹ÊÇÒ»ÑùµÄ´í°¡¡£

Ö±½Ó°Ñstdafx.cpp¸Ä´æ³Éstdafx.cÊDz»ÊÇÓÐʲôÎÊÌ⣿ÎÒÊDz»ÊÇÓ¦¸Ã¸ÄÒ»ÏÂstdafx.hÀïÌõ¼þ±àÒëÓï¾ä£¿

ÎҸɹýÓÃg++À´±àÒë.cÎļþ£¨ÀïÃæÓÃÁËC++µÄÍ·Îļþ£©µÄʶù£¬ÄÇÔÚÕâÖÖÇé¿öÏÂÊÇ°´Ê²Ã´±àÒëµÄ£¿

ºÃÏñÐèÒªÌíÒ»¸ö PtAss.h ¹©±àÒë¡£

ÒýÓÃ
ºÃÏñÐèÒªÌíÒ»¸ö PtAss.h ¹©±àÒë¡£


лл£¬ÇëÎÊÕâ¸ö.hÀï´óÖÂҪдʲôÄÚÈÝ£¿

UP

É


Ïà¹ØÎÊ´ð£º

¹ØÓÚthe c program µÄÒ»µÀÌâ!

±àд³ÌÐòdetab, ½«ÊäÈëÖеÄÖƱí·ûÌæ»»³ÉÊʵ±ÊýÄ¿µÄ¿Õ¸ñ£¬Ê¹¿Õ¸ñ³äÂúµ½ÏÂÒ»¸öÖƱí·ûÖÕÖ¹µÄµØ·½¡£¼ÙÉèÖƱí·ûÖÕֹλµÄλÖÃÊǹ̶¨µÄ£¬±ÈÈçÿ¸ônÁоͻá³öÏÖÒ»¸öÖƱí·ûÖÕֹλ¡£
£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­ ......

C\C++ÈçºÎ¼ÆË㺯ÊýµÄµ¼Êý

C\C++ÈçºÎ¼ÆË㺯ÊýµÄµ¼Êý,±¾ÈËÐÂÊÖ£¬Ïëд¸ö³ÌÐò£¬µ«ÊDz»ÖªµÀÈçºÎÏÂÊÖ£¬»¹Íû¸ßÊÖÖ¸µãÒ»¶þ£¬Ð»¹ý¡£
Õâ¸ö¡­¡­

¸úº¯ÊýµÄ¾ßÌåÐÎʽÓйذɣ¬ÄѵÀÄãÏë±à³ö¸ö¡°ÍòÄÜ¡±µÄÇ󵼺¯Êý£¿

°³ÉÏѧʱÏë¹ý×Ô¶¯ÍƵ¼¹«Ê½£¬ºóÀ´ ......

C ³ÌÐòÎÊÌâ (¶þ) - C/C++ / CÓïÑÔ

ÎÊһϣº
#include <stdio.h>
int main()
{
  char x, y, z;
  int i;
  int a[16];
  for(i=0; i<=16; i++)
  {
  a[i] = 0;
  ......

CÁ´±íÎÊÌâ

ÎÒ½¨ÁËÒ»¸ö´øÍ·Ö¸ÕëµÄÁ´±í
Í·Ö¸ÕëL ÄÇôÎÒÏëɾ³ýÁ´±í
free(l);ÊÇɾ³ýÁËÍ·½áµã »¹ÊÇÁ¬ËüµÄÏÂÃæµÄ½áµãÒ²Ò»ÆðɾÁË£¿
free(l)ºó »¹ÓÃȫɾһ±ãÂ𣿣¨´ÓÄÚ´æµÄ½Ç¶È ²»ÊÇ´Ó²éÕҵĽǶȿ¼ÂÇ£©
ɾͷ½Úµã
»Ø´ðÍê±Ï ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ