Hello World
2015-10-19 20:11
239 查看
mkdir temp
cd temp
1)C程序
gedit testc.c
gcc testc.c -o hello
./hello
2)C++程序
gedit test.cpp
./test
cd temp
1)C程序
gedit testc.c
#include<stdio.h> int main() { printf("Hello World!\n"); return 0; }
gcc testc.c -o hello
./hello
Hello World!
2)C++程序
gedit test.cpp
#include<iostream> int main(){ std::cout<<"Hello, world!\n"; }g++ test.cpp -o test
./test
Hello, world!
相关文章推荐
- C#编程自学之开篇介绍
- 不用IDE写C#的Hello World的方法
- jquery Moblie入门―hello world的示例代码学习
- Android学习笔记(一)环境安装及第一个hello world
- Cocos2d-x学习笔记之Hello World!
- hello world程序集锦
- 全民学编程之 Hello World
- 使用angular写一个hello world
- 24种编程语言的Hello World程序
- Perl初学笔记之Hello World
- Java4Android开发教程(二)hello world!
- Logstash笔记(二) ----input插件
- linux操练之---------vi/vim去除历史查找结果高亮显示
- dubbo初探一之hello world
- MYSQL 用户的操作
- Hello World!
- 大规模网络路由配置及分析
- 4. Hello World
- 为web应用添加Hibernate支持
- c++ 编译错误is not a static member of ...