2015年10月11日

时间:2022-12-07 14:31:51
#在终瑞下成功运行首个c语言程序,hello world!!!!! Last login: Sat Oct 10 22:36:52 on console

momodeMacBook-Air:~ momo$ ls

ApplicationsDownloadsPictures

BombSquadX.appLibraryPublic

DesktopMovieseclipse

DocumentsMusic百度云同步盘

momodeMacBook-Air:~ momo$ cd Documents

momodeMacBook-Air:Documents momo$ ls

JOBebook

Microsoft 用户数据kongfz

R learnwin to go

TTKNwin安装包

Thumbs.dbworkspace

Virtual Machines.localized

Youku研究生课程

c

momodeMacBook-Air:Documents momo$ cd c

momodeMacBook-Air:c momo$ ls

hellotext.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.outhellotext.c

momodeMacBook-Air:c momo$ ./a.out

Hello world!

momodeMacBook-Air:c momo$