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

Á½¸öCÎļþµÄÎÊÌâ

ÒÔÇ°ÔÚVCÀïÃ潨һ¸ö¹¤³Ì£¬¶¼Ö»ÓÃÒ»¸ö .c Îļþ£¬×òÌìÔÚÒ»¸ö¹¤³ÌÀïÓÃÁËÁ½¸ö .cÎļþÁË£¬Óöµ½ÎÊÌâÁË£¬Çë´ó¼ÒÖ¸µã¡£±ÈÈ磺
File1.c File2.c
1 fun1( ) #include "File.c"
2 { fun( ) { }
3 int main()  
4 } {
5 fun2( ) fun1( );
6 { fun2( );
7 }
8 }
ÔÚ±àÒëÁ¬½Óͨ¹ýºó£¬½á¹ûÓÖµãÎÊÌ⣬ÎÒ¾ÍÐÞ¸ÄÁËÏÂFile.c£¬¸øfun1()¼ÓÁ˼¸ÐУ¬fun2()µ½Á˵Ú7ÐÐÁË£¬±àÒëÁ¬½ÓûÎÊÌ⣬

µ«ÊÇÊä³ö½á¹ûû±ä£¬µ¥²½µ÷ÊÔʱ·¢ÏÖÁ˸öÆæ¹ÖµÄÎÊÌ⣬ÔÚmain()ÀïÃæµ÷ÓÃfun2()ʱ¹â±êÊÇ»¹ÊÇ´ÓµÚ5ÐпªÊ¼½øÈ룬¶ø²»ÊÇ´Ó

fun2()¸ÄºóµÄµÚ7ÐпªÊ¼½øÈ룬¶øÇÒÎÒÔÚfun1ÖÐÐ޸ĺó¼ÓµÄ±äÁ¿ÔÚÏÂÃæµÄ״̬À¸ÀïÒ²ÕÒ²»µ½£¬¼ÓµÄ¼¸¸öÌõ¼þ¸ú±¾Ã»Ö´ÐÐ

  ÎÒ¾õµÃÎÊÌâÊǸĺÍû¸ÄÒ»¸öÑù£¬ÎÒ·Ö±ð±àÒ룬Á¬½ÓÁËÁ½¸öÎļþ»¹ÊÇûÓã¬Çë´ó¼ÒÖ¸µãÏ£¬Ó¦¸ÃÔõô°ì£¿ ÏÈллÁË


lz»¹ÊǺúÃÅŸö°æ°É£¬Êµ


Ïà¹ØÎÊ´ð£º

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

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

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

ѧϰÌÖÂÛ C/C++ QQȺ - C/C++ / ·Ç¼¼ÊõÇø

QQȺ 29152388
ÓÑÇéUP

°ï¶¥

up

°ïup

up Ö§³Ö£¡

up jf

...ÄѵÀÓзÖ..?

up up up
Ï£ÍûÓеüӷ֣¬¹þ¹þ¡£

Ö§³Ö£¬ÎÒ¼ÓÁË£¬Ï£ÍûÂ¥Ö÷ÄܼÓÎÒ£¬¹²Í¬Ñ§Ï°¹þ

¼ÓÁË¡£

¶¥ÉÏ£¬Ã¿ÌìÊÕ»ñÒ»µã£¬Ö§³Ö ......

c signalµ÷ÓÃÎÊÌâ

¿ªÊ¼Ñ§OS,°´Á·Ï°ÒªÇóдµÄ´úÂëÔÚgccÏÂÎÞ·¨±àÒ룺

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h>

void SIGFPEhandler2(int s ......

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ÃæÊÔÌâ

¸øÒ»¸ö×Ö·û´®¡¢ÀýÈç ¡°ababc¡±ÒªÇ󷵻ء°ab¡±. ÒòΪ¡°ab¡±Á¬ÐøÖظ´³öÏÖÇÒ×¡£  ÓÃC/C£«£«ÓïÑÔдһº¯ÊýÍê³É¸ÃËã·¨£¬¸ø³ö¸´ÔÓ¶È
Õâ¸öÌâÎÒ²»»á

C/C++ code:

#include <iostream>
#include <s ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ