一.Linux下的C文件编译:
#include <stdio.h>
int main()
{
printf("hello 张铁头!\n");
return 0;
}
编译过程:
二.Linux下的C++文件编译:
#include <iostream>
using namespace std;
int main()
{
cout<<"hello 张铁头!"<<endl;
return 0;
}
编译过程:
#include <stdio.h>
int main()
{
printf("hello 张铁头!\n");
return 0;
}
编译过程:
#include <iostream>
using namespace std;
int main()
{
cout<<"hello 张铁头!"<<endl;
return 0;
}
编译过程: