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

ÎļþÎÊÌ⣿C´óÏÀÇë½ø

ÔÚCÓïÑÔÖÐÈçºÎ´ò¿ªÒ»¸öÒÑÖªµÄÎļþ¡£Èç´ò¿ªÃûΪadd.txtµÄÎļþ¼ÙÉèËüÔÚC:\\Promgram Files\add.txt.ÒªÇó´ò¿ªÊ±²»¸Ä±äÆäÀïÃæµÄÄÚÈÝ¡£¸ßÊÖÇë½â´ðÏ°¡
fopen( "C:\\Promgram Files\add.txt" , "rb" );

fopen( "C:\\\\Promgram Files\\add.txt" , "rb" );

fopen("C:\\Promgram Files\add.txt" ,"r");


"rb"ÊÇÖ»¶Áģʽ£¬¶à¼Ó¼¸¸ö¡°\¡±ÊÇתÒå¡£

Ôõô¸ãµÄ£¿£¿

×ÜÔÚÕâ¿´µ½ËûÃÇ¡£

ÎÒ×ßÁË£¬·Ö¸øµã¡£


Ïà¹ØÎÊ´ð£º

É¢·Ö£¬ÎªC£¯C++ÂÛ̳Ôö¼ÓµãÈËÆø£¡£¡

É¢·Ö£¬ÎªC£¯C++ÂÛ̳Ôö¼ÓµãÈËÆø£¡£¡
jf

jf£¬Â¥Ï±£³Ö¶ÓÐÎ

Ö»¼û¹ý²»¸ÒÉ¢·ÖµÄ£¬Ã»¼û¹ý²»¸Ò½Ó·ÖµÄ

½Ó



Ç°ÅÅÁôÃû

jf

ÕâÀïÈËÆø»¹²»´í°¡£¡

½Ó·Ö ¡­¡­ C/C++ºÃÈÈÄֶ¡­ÆäËû°æ¿é¾ÍÏà¶ÔûÕâôÈÈÁË ......

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

QQȺ 29152388
ÓÑÇéUP

°ï¶¥

up

°ïup

up Ö§³Ö£¡

up jf

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

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

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

¼ÓÁË¡£

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

c/s ºÍb/sµÄÇø±ðÊÇʲô£¬Ò»Ö±¸ã²»Çå

c/s ºÍb/s µÄÇø±ðÊÇʲô£¬c/sÐèÒª·þÎñÆ÷Âð£¬ÔõôÅжϳÌÐòÊÇc/s »¹ÊÇb/s
C/SÊÇ·þÎñÆ÷ºÍ¿Í»§¶Ë    B/SÊÇ·þÎñÆ÷ºÍä¯ÀÀÆ÷

ËûÃǶ¼ÓÐs£¬Ê²Ã´ÊÇs?¾ÍÊÇserver
ÄÇËûÃǵÄÇø±ðÊÇʲô£¿Ò»¸öÊÇc£¬¼´client£¬Ò»¸ö ......

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ºÅ