关于gcc编译的简单问题(在线等待!!!)

我在Linux 8.0平台上编了一个简单的C程序,可是编译不过?

文件名:gm.c

内容:
#include

 1<stdio.h>   
 2main()   
 3{   
 4printf("You are right\n");   
 5}   
 6  
 7然后:gcc gm.c   
 8  
 9系统生成:a.out   
10  
11我在提示符下输入:a.out   
12  
13系统报错,这个在TC2.0中可是一定能通过,为什么这里不行???   
14\---------------------------------------------------------------   
15  
16系统报的什么错?   
17试试 ./a.out   
18\---------------------------------------------------------------   
19  
20#gcc -o gm.c gm   
21#./gm   
22\---------------------------------------------------------------   
23  
24前面加上./</stdio.h>
Published At
Categories with 服务器类
Tagged with
comments powered by Disqus