I write helloword.cpp and makefile at /c.
I 've already install the gcc and g++.
how to use the compiler to output my words.
helloword.cpp
#include <stdio.h>
#include <iostream>
using namespace std;
int main() {
printf("Hello \n");
cout<<"World!!\n";
}
makefile
all:helloworld
helloworld:helloworld.cpp
\tg++ -g -o \$@ helloworld.cpp
how to use compiler
-
- 帖子: 131
- 注册时间: 2006-10-25 17:50
- 来自: 南京
- 联系:
- efan
- 帖子: 238
- 注册时间: 2006-09-14 21:59
- 来自: 广东
- 联系:
-
- 帖子: 131
- 注册时间: 2006-10-25 17:50
- 来自: 南京
- 联系:
-
- 帖子: 131
- 注册时间: 2006-10-25 17:50
- 来自: 南京
- 联系:
-
- 帖子: 131
- 注册时间: 2006-10-25 17:50
- 来自: 南京
- 联系:
thank you
I understand your meaning.