Linux下HelloWorld
来源:互联网 发布:超级店长软件 编辑:程序博客网 时间:2024/06/15 09:27
hello1.c
/* hello1.c
* purpose show the minimal calls needed to use curses
* outline initialize, draw stuff, wait for input, quit
*/
#include <stdio.h>
//#include <curses.h>
int main()
{
printf("Hello World");
puts("DDDD");
// initscr() ;/* turn on curses */
/* send requests*/
// clear(); /* clear screen */
// move(10,20);/* row10,col20 */
// addstr("Hello, world");/* add a string */
// move(LINES-1,0);/* move to LL */
// refresh(); /* update the screen */
// getch(); /* wait for user input */
// endwin(); /* turn off curses */
return 0;
}
* purpose show the minimal calls needed to use curses
* outline initialize, draw stuff, wait for input, quit
*/
#include <stdio.h>
//#include <curses.h>
int main()
{
printf("Hello World");
puts("DDDD");
// initscr() ;/* turn on curses */
/* send requests*/
// clear(); /* clear screen */
// move(10,20);/* row10,col20 */
// addstr("Hello, world");/* add a string */
// move(LINES-1,0);/* move to LL */
// refresh(); /* update the screen */
// getch(); /* wait for user input */
// endwin(); /* turn off curses */
return 0;
}
终端跑到 hello1.c 同目录下 之后 输入命令 gcc hello1.c -o hello1
之后会发现同目录下出现 hello1的这个可执行文件
之后 终端输入 ./hello1
运行文件
0 0
- Linux下HelloWorld
- linux下HelloWorld全攻略
- linux下的helloworld程序
- Linux下终于写出了HelloWorld了
- Red Hat Linux下的HelloWorld
- Linux下的CppUnit 的HelloWorld手记
- linux下C语言之HelloWorld
- Linux 下HelloWorld程序的一些测试
- Linux下的CppUnit 的HelloWorld手记
- linux下编写汇编的Helloworld
- 菜鸟Linux vim下的HelloWorld
- Linux下配置vim,完成Helloworld
- linux下编写汇编的Helloworld
- Linux下helloworld的简单编译过程
- linux下c语言编程-helloworld
- linux下redis安装之HelloWorld
- linux下helloworld无法运行的问题
- (转)Linux下的CppUnit 的HelloWorld手记
- 用PyInstaller将python转成可执行文件exe笔记
- MATLAB repmat函数的使用
- Caffe源码解析1:Blob
- log4net-错误日志抛出
- 编码规范和最佳实践
- Linux下HelloWorld
- C++ primer 5th 读完的一点心得体会
- CDN的基本工作过程
- oracle中sequence详解
- Android自定义属性实现图片屏幕的适配
- 模拟搭建Web项目的真实运行环境(三)
- Dragon Raja 语录
- error: redefinition of ‘xxx’问题的解决
- 线程基础篇