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$
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$
相关文章推荐
- 2015年10月8日
- php基本语法及基本数据结构(一)
- [转]有关算法方面的经典书籍推荐
- php开发入门之开发环境搭建及相应文件配置
- 2015年9月28日
- 2015年09月26日
- 2015年9月25日
- android开发中WebView控件的实例与注意要点——个人主页浏览器简易实现
- 【杭电】[1052]Tian Ji -- The Horse Racing
- 2015年09月22日
- Android中各类Dialog实例——交互
- zend studio项目显示点开头的文件
- 链表
- Border边框
- 封装控件的原理
- qt-qml移动开发之在ios上开发和部署app流程简介
- 数组与数组队列
- Hust oj 1033 487-3279(map)
- nyist 1030 Yougth's Game[Ⅲ]
- 参数传递及内存分析