几个常用的linux下语言编译

c++编译

#include <iostream>
using namespace std;
int main() {
Hello h;
h.print();
return 0;
}
g++ 文件名.cpp -o 文件名
./文件名

c编译
#include<stdio.h>
int main()
{
printf("hello");
return 0;
}
gcc -o 文件名 文件名.c
./文件名

python编译

print“hhhh”;
python   文件名.py

 

posted @ 2015-04-26 23:13  新手起航  阅读(220)  评论(0)    收藏  举报