Linux 编译运行 C/C++程序
来源:互联网 发布:编程项目划分依据 编辑:程序博客网 时间:2024/04/29 15:31
终端输入命令
emacs
打开emacs编辑器。编写代码
#include <iostream>
using namespace std;
int main()
{
cout<<"hello world.."<<endl;
return 0;
在终端敲击键盘ctr+Z进入终端命令行
输入命令行,进行编译(若是C语言,使用gcc代替g++)
g++ test.cpp -o testcpp
运行命令:
./testcpp
运行结果:
hello world..
可以使用emacs test.cpp进行对程序进行修改。
emacs
打开emacs编辑器。编写代码
#include <iostream>
using namespace std;
int main()
{
cout<<"hello world.."<<endl;
return 0;
}
在终端敲击键盘ctr+Z进入终端命令行
输入命令行,进行编译(若是C语言,使用gcc代替g++)
g++ test.cpp -o testcpp
运行命令:
./testcpp
运行结果:
hello world..
可以使用emacs test.cpp进行对程序进行修改。
- linux编译运行C程序
- Linux 编译运行 C/C++程序
- linux下如何编译运行c程序
- Linux下编译运行C程序
- linux编译运行C/C++程序
- Linux下编译运行C程序
- Linux下编译并运行C程序
- Linux 下编译运行C程序
- Linux下编译运行C程序
- Linux下编译并运行C程序
- linux下编辑并编译运行C/C++/python程序
- Linux Linux下如何编译并运行C程序
- 在linux下编译运行c语言程序
- Linux下编译运行C程序超高速教程
- linux下编译运行c程序----------韩顺平
- Linux下如何编译并运行C程序
- linux下编译运行c 程序小总结
- Linux下如何编译并运行C程序
- Grid Database Control
- IIS的ISAPI接口简介
- 关于领导力
- asp.net中用dropdownList实现查询功能代码
- 打造自己的专属linux(三):添加网络模块,登录界面,开关机
- Linux 编译运行 C/C++程序
- 终端执行哪种脱机数据认证的依据
- 软件研发 -- “项目”、“产品”、“工程”和“人”
- 基于堆栈的计算器实现算法
- 关于《Android技术内幕-系统卷》有感
- Linux环境.vimrc 设置,自动添加Python源文件头信息
- HASHDB:一个简单的KeyValue存储系统原型
- asp.net中读取数据库数据代码
- 0xC0000005: Access Violation 非法访问