#include<iostream>
int main(){
std::cout<<"helloworld"<<std::endl;
}
利用g++编译
g++ -o t.out test.cpp
运行编译结果
./t.out
写test.c
#include<stdio.h>
int main(){
printf("helloworld");
}
gcc -o t.out test.c
./t.out
原文:https://www.cnblogs.com/peng-yuan/p/15043492.html