当前位置: 技术问答>linux和unix
LINUX 下 G++ 编译过不去
来源: 互联网 发布时间:2016-04-23
本文导语: #include "startfun.h" #include "hello.h" int main() { hello abc; abc.work(); start2(); start1(); return 0; } /*......................hello.h....................*/ #ifndef _HELLO_H #define _HELLO_H ...
#include "startfun.h"
#include "hello.h"
int main()
{
hello abc;
abc.work();
start2();
start1();
return 0;
}
/*......................hello.h....................*/
#ifndef _HELLO_H
#define _HELLO_H
class hello
{
public:
void work();
};
#endif
/*......................hello.cpp.................*/
#include "hello.h"
#include
using namespace std;
void hello::work()
{
cout
#include "hello.h"
int main()
{
hello abc;
abc.work();
start2();
start1();
return 0;
}
/*......................hello.h....................*/
#ifndef _HELLO_H
#define _HELLO_H
class hello
{
public:
void work();
};
#endif
/*......................hello.cpp.................*/
#include "hello.h"
#include
using namespace std;
void hello::work()
{
cout