您的位置:首页 > 其它

2015年10月11日

2016-07-23 18:11 155 查看
#在终瑞下成功运行首个c语言程序,hello world!!!!!Last login: Sat Oct 10 22:36:52 on console
momodeMacBook-Air:~ momo$ ls
Applications Downloads Pictures
BombSquadX.app Library Public
Desktop Movies eclipse
Documents Music 百度云同步盘
momodeMacBook-Air:~ momo$ cd Documents
momodeMacBook-Air:Documents momo$ ls
JOB ebook
Microsoft 用户数据 kongfz
R learn win to go
TTKN win安装包
Thumbs.db workspace
Virtual Machines.localized 杂
Youku 研究生课程
c
momodeMacBook-Air:Documents momo$ cd c
momodeMacBook-Air:c momo$ ls
hello text.c
momodeMacBook-Air:c momo$ gcc text.c
text.c:1:10: fatal error: 'stidio.h' file not found
#include <stidio.h>
         ^
1 error generated.
momodeMacBook-Air:c momo$ gcc text.c
text.c:1:10: fatal error: 'studio.h' file not found
#include <studio.h>
         ^
1 error generated.
momodeMacBook-Air:c momo$ gcc text.c
text.c:3:5: error: cannot combine with previous 'int' declaration specifier
int int main()
    ^
1 error generated.
momodeMacBook-Air:c momo$ gcc text.c
momodeMacBook-Air:c momo$ ls
a.out hello text.c
momodeMacBook-Air:c momo$ ./a.out
Hello world!
momodeMacBook-Air:c momo$ 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: