C++新手有关问题怎么在Main函数中使用类对象

C++新手问题如何在Main函数中使用类对象
我用的是VS2008,在头文件中声明了类,并写完了它,想再Main函数中调用它,但是出错,不能声明这个类的对象,源代码在下面
这个是头文件部分
#ifndef testclass  
#define testclass #endif
class testclass
{
public: void getstring();

};


这个是源文件:
#include "stdafx.h"
#include <iostream>
using namespace std;

class testclass
{
private:
std::string itemname;
public:
void getstring()
{
const char *p = "some value";
while(*p)
{
++p;
  cout<<*p;

}

}

};
下面是Main函数
#include "stdafx.h"
#include <iostream> 
#include "testclass.h"
using namespace std;

int _tmain(int argc, _TCHAR* argv[])
{
testclass tt;
  
return 0;

}

------解决方案--------------------
1.你的头文件定义格式有问题;应该这样:
#ifndef _TESTCLASS
#define _TESTCLASS 

class testclass
{
public: void getstring();
};

#endif
2.你在头文件里已经定义了testclass类,为什么在CPP文件里又再次定义testclass类呢?直接include你的头文件,然后实现其中的成员函数就OK了啊。。。
------解决方案--------------------
有些地方写错了,更正:
testclass.h:
#ifndef _TESTCLASS
#define _TESTCLASS

//#include "stdafx.h"
#include <iostream>
#include<string>
using namespace std;

class testclass
{
private:
string itemname;
public:
void getstring();
};
#endif

testclass.cpp:
#include <iostream>
#include <string>
#include "testclass.h"
using namespace std;
void testclass::getstring()
{
const char *p = "some value";
while(*p)
{
++p;
cout<<*p;

}
}
testproject.cpp:
//#include "stdafx.h"
#include <iostream>
#include "testclass.h"
using namespace std;

int main()
{
testclass tt;
tt.getstring();

return 0;