mkdir name
创建文件夹
rm name 删除文件
vi a.txt 创建文件
vi helloworld.cpp
下面直接编辑
然后ESC 然后输入":wq" 保存并退出文件编辑
g++ helloworld.cpp -o hello.out 编译helloworld.cpp并保存成hello.out
./hello.out 输出结果
rm name 删除文件
vi a.txt 创建文件
vi helloworld.cpp
下面直接编辑
然后ESC 然后输入":wq" 保存并退出文件编辑
g++ helloworld.cpp -o hello.out 编译helloworld.cpp并保存成hello.out
./hello.out 输出结果
快捷键:
Ctrl+Space 切换输入法
参考:
http://www.cnblogs.com/zf2011/archive/2011/05/17/2049155.html
http://blog.youkuaiyun.com/tsaiyong_ahnselina/article/details/16981571
http://wiki.ubuntu.org.cn/index.php?title=Compiling_Cpp&variant=zh-hans