1.需要gcc命令
sudo apt-get install g++
2.编写Hello.cpp文件
include <stdio.h>
int main()
{
printf("hello cpp");
}
3.编译文件gcc Hello.cpp
4.运行./a.out
1.需要gcc命令
sudo apt-get install g++
2.编写Hello.cpp文件
include <stdio.h>
int main()
{
printf("hello cpp");
}
3.编译文件gcc Hello.cpp
4.运行./a.out