易截截图软件、单文件、免安装、纯绿色、仅160KB

linux c 编译通不过,请高手帮我看下哪里的错?

int _send()
{
int fd,size;
char fname[1024],buffer[4096];

/*输入要传输的文件*/
printf("请输入您要传输的文件路径:\n");
gets(fname);
/*打开文件*/
fd = open(fname,O_RDONLY,0);
/*读取文件*/
while((size = read(fd,buffer,4096))>0)
{
/*调用client函数,传输文件*/
// client(buffer);
printf("%s",*buffer);
}
if(size == -1)
{
fprintf(stderr,"Read Error: %s\a\n",strerror(errno));
exit(-1);
}
/*传输结束,关闭文件*/
close(fd);
printf("传输完毕!\n");

/*我用gcc -c clien client.c编译,
*提示错误信息:
*
*client.c: 在函数‘_send’中:
*client.c:58: 错误: 在调试器里重新运行此程序
*client.c:58: 错误: 在调试器里重新运行此程序
*client.c:58: 错误: 在调试器里重新运行此程序
*client.c:58: 错误: expected declaration or statement at end of input
*/
是不是没头文件啊

printf("%s",*buffer); 这里是不是错了

#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <netdb.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <netinet/in.h>
#include <sys/socket.h>

头文件。
{{--


相关问答:

jsp中 <c:if test> 相关问题

在查询后将查询出来的值赋给各输入框
<c:if test="${not empty dataValue}">
      fm.SAMPLING_DATE.value=" <c:out value='${dataValue.SAMPLING_DATE}'/ ......

使用C的高手请进

大家好!我是一位C爱好者,向大家请教下,C程序员可好找工作?公司用C干些什么?
无所谓好不好找工作,一般通信、系统、嵌入式、硬件方面用的多,而且由于C的底层特性,学会后在学其他的会比较容易

不管用什么语 ......

c中的转义字符问题

    '\108'作为字符常量对不对?
转义字符'\ddd'表示3位8进制所代表的字符。 但是108不是正确的8进制表示方法,因此应该是错误的。
但是char a='\108'; 为什么编译不出错呢?
\108 没超过 ......

C#调用 C DLL问题,懂的来抢分了

//C 接口
extern "C"
{
  TESSDLL_API int __cdecl GetTessText(const char *imagefile, char *text);  
}
//我在C#中声明
//调用C DLL 中的函数
[DllImport("OCRapi.dll&quo ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号