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

c º¯ÊýÖ¸Õë

c º¯ÊýÖ¸Õë
º¯ÊýÖ¸ÕëÊÇʲô£¿
     Ò»¸öº¯ÊýÕ¼ÓÃÒ»¶ÎÁ¬ÐøÄÚ´æ¡£µ±µ÷ÓÃÒ»¸öº¯Êýʱ£¬Êµ¼ÊÉÏÊÇÌøתµ½º¯ÊýÈë¿ÚµØÖ·£¬Ö´Ðк¯ÊýÌåµÄ´úÂ룬Íê³Éºó·µ»Ø¡£
ÈçºÎÕÒµ½¶ÔÓ¦µÄÈë¿ÚµØÖ·£¿
     ÕâÊÇÓɺ¯ÊýÃûÀ´±ê¼ÇµÄ£¬Êµ¼ÊÉÏ£¬º¯ÊýÃû¾ÍÊǺ¯ÊýµÄÈë¿ÚµØÖ·¡£ º¯ÊýÖ¸ÕëÊÇÒ»ÖÖÌØÊâÀàÐ͵ÄÖ¸Õ룬ËüÖ¸ÏòÒ»¸öº¯ÊýµÄÈë¿ÚµØÖ·¡£
     ×¢Ò⣺³ýÁËvoidÀàÐÍÖ¸ÕëÊÇÎÞÀàÐ͵ÄÖ¸ÕëÍ⣬ÆäËûËùÓÐÖ¸Õ붼ÊÇÓжÔÓ¦ÀàÐ͵ģ¬
     ÀýÈçint *pint¡¢struct studentdata *psdataµÈ£¬Ö»ÓÐÖ¸Ã÷ÁËÖ¸ÕëËùÖ¸µÄÊý¾ÝÀàÐÍ£¬±àÒëÆ÷²ÅÄÜΪָÕë·ÖÅä»òÔ¤¼Æ·ÖÅäÏàÓ¦´óСµÄ´æ´¢¿Õ¼ä£¬Ö¸ÕëµÄËãÊõÔËËãÈçpint++µÈ²ÅÊÇÓÐÒâÒåµÄ¡£Òò´Ë£¬¶¨ÒåÁËijÖÖÀàÐ͵ÄÖ¸ÕëÖ®ºó£¬³ý·ÇʹÓÃÇ¿ÖÆÀàÐÍת»»£¬ÄÇôËüÖ»ÄÜÖ¸ÏòÏàÓ¦Êý¾ÝÀàÐ͵ıäÁ¿»ò³£Á¿£¬²»Í¬ÀàÐ͵ÄÖ¸Õë»òÊý¾ÝÖ®¼ä²»¿É»ìÓá£ËùÒÔÖ¸ÕëµÄÀàÐÍʵ¼ÊÉÏÊÇÒ»ÖÖÉí·Ý±êÖ¾µÄ×÷Óá£
º¯ÊýÖ¸ÕëÈçºÎ±íÃ÷×Ô¼ºµÄÉí·ÝÄØ£¿
      ΪÁ˱ÜÃâ»ìÂÒ£¬±ØÐëÒ²Òª×÷³öÏàÓ¦¹æ¶¨£¬²»Í¬º¯ÊýµÄº¯ÊýÖ¸Õë²»ÄÜ»ìÓá£
ÀýÈ磬int func1(int arg11, char arg12)Óë
         int func2(char arg)µÄº¯ÊýÖ¸Õë¾Í²»ÄÜ»ìÓã¬Òª¶¨Òå¿ÉÒÔÖ¸Ïòfunc1µÄº¯ÊýÖ¸Õë
Ó¦¸ÃÕâÑù£º                                           int (*pfunc1)(int, char) = func1£»
¶¨Òå¿ÉÒÔÖ¸Ïòfunc2µÄº¯ÊýÖ¸ÕëÔò¸ÃÈçÏ£º int (*pfunc2)(char) = func2;
´Óº¯ÊýÖ¸ÕëµÄ¶¨Òå¿ÉÒÔ¿´³ö£¬º¯ÊýÖ¸ÕëµÄÀàÐÍʵ¼ÊÉÏÊÇÓɺ¯ÊýÇ©Ãû¾ö¶¨µÄ¡£
º¯ÊýÇ©Ãû¾ÍÏóÊǺ¯ÊýµÄÉí·ÝÖ¤£¬Ò»¸öº¯ÊýµÄº¯ÊýÇ©ÃûÊǶÀÒ»ÎÞ¶þµÄ£¬¾ßÓÐÏàͬº¯ÊýÇ©ÃûµÄº¯Êýʵ¼ÊÉϾÍÊÇͬһº¯Êý¡£º¯ÊýÇ©Ãû°üÀ¨º¯ÊýÃû¡¢º¯ÊýÐβÎÀàÐ͵ÄÓÐÐòÁбíºÍº¯Êý·µ»ØÖµÀàÐÍ¡£
Ò»¸öº¯ÊýÖ¸ÕëµÄ¶¨Òå¹æ¶¨ÁËËüÖ»ÄÜÖ¸ÏòÌض¨ÀàÐ͵ĺ¯Êý¡£Èç¹ûÁ½¸öº¯ÊýµÄÐβÎÁбíºÍ·µ»ØÖµÀàÐÍÏàͬ£¬Ö»Óк¯ÊýÃûºÍº¯ÊýÌ岻ͬ£¬Ôò¿ÉÒÔʹÓÃÏàͬÀàÐ͵ĺ¯ÊýÖ¸Õë¡£
ÀýÈ磬Èç¹û»¹ÓÐÒ»¸öº¯Êýint func3(char arg)£¬ÔòÉÏÃ涨ÒåµÄ¿ÉÒÔÖ¸Ïòº¯Êýfunc2µÄº¯ÊýÖ¸ÕëÒ²¿ÉÒÔÓÃÓÚÖ¸Ïòfunc3£¬¼´£º pfunc2 = func3; ÔÙʹÓÃpfunc2(char ARG)¾Í¿ÉÒÔµ÷Óú¯Êýfunc3£¬ÕâʱָÁî¼


Ïà¹ØÎĵµ£º

C compiler cannot create executablesµÄ½â¾ö·½·¨

¸ãÁ˼¸ÌìµÄÎÊÌâ¡£±àÒëÒ»¸öÎļþʱ,ÀÏÊdzöÏÂÃæÕâ¸ö´í.
checking for C compiler default output file name… configure: error: C compiler cannot create executables
û·¨×Ó,ÕÒ¸ßÈË°ïÎÒ´¦Àí,¹þ¹þ….¼Ç¼ÏÂÀ´.ÒòΪ64λµÄ»úÆ÷£¬Ä¬È϶ÔCFLAGSµÄÕâÊǽøÐÐÁËÉèÖÃ,ËùÒÔʹÓÃÏÂÃæµÄÃüÁîÇå¿ÕËû¾ÍÐÐÁË£¬ÕâÑùÈí¼þ¾Í²»»á±¨ ......

´¿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++Öеı£Áô

Í·ÎļþµÄ×÷ÓÃ
ÔçÆڵıà³ÌÓïÑÔÈçBasic¡¢Fortran ûÓÐÍ·ÎļþµÄ¸ÅÄC++/C ÓïÑԵijõѧÕßËäÈ»»áÓÃʹÓÃÍ·Îļþ£¬µ«³£³£²»Ã÷ÆäÀí¡£ÕâÀï¶ÔÍ·ÎļþµÄ×÷ÓÃÂÔ×÷½âÊÍ£º
£¨1£©Í¨¹ýÍ·ÎļþÀ´µ÷Óÿ⹦ÄÜ¡£ÔںܶೡºÏ£¬Ô´´úÂë²»±ã£¨»ò²»×¼£©ÏòÓû§¹«²¼£¬Ö»ÒªÏòÓû§ÌṩͷÎļþºÍ¶þ½øÖƵĿ⼴¿É¡£Óû§Ö»ÐèÒª°´ÕÕÍ·ÎļþÖеĽӿÚÉùÃ÷À´µ÷Óÿ⹦ ......

C/C++Éî²ã̽Ë÷

Ò»¡¢
1¡¢¹ØÓÚ×Ö½Ú˳Ðò£º»°ËµÔÚÌض¨µÄÓ²¼þƽ̨ÉÏ£¬¶à×Ö½ÚÊý¾ÝµÄ˳Ðò´æ·ÅÓÐÁ½ÖÖ·½Ê½£¨little-endian¡¢big-endian£©¡£Ç°ÕßµÄÊý¾ÝµÄµÍ×Ö½Ú
     ²¿·Ö´æ·ÅÔڵ͵ØÖ·Äڴ棬ºóÕßÇ¡ºÃÏà·´¡£PCÒ»°ãÊÇ»ùÓÚIA-32΢´¦ÀíÆ÷£¬ÊôÓÚlittle-endian¡£Ä³Ð©RISC¼Ü¹¹µÄCPU£¬ÀýÈçSPARC¡¢
    POWERPCµÈ£¬ÔòÊ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ