헤더.h
-------------------
#ifndef h
#define h
#include <stdio.h>
class test
{
public:
void print()
{
printf("정상");
}
};
test tes;
#endif
----------------------------------
소스.cpp
---------------------------------
#include <stdio.h>
#include "헤더.h"
int main()
{
tes.print();
return 0;
}
----------------------------
되여
흠 넴 해보겠씁니다.
컴파일 성공함 cpp에도 test tes를 정의하면 되더군영
ㄱㅅㄱㅅ