Quote Originally Posted by twomers
>> Test.name = gName;

Should that be strcat or strcpy or something?



EDIT -

change

Code:
	cout<<"Enter Name: ";
	cin>>gName;   //<--here's the error
to

Code:
	char *gName;
	cout<<"Enter Name: ";
	cin>>gName;   //<--here's the error
and I would recommend the strings rather than char*'s

thanks mate, but it doesn't help.
Code:
#include <iostream>
using namespace::std;

class CTest
{
public:
	char *name;
};

CTest Test;
//char *gName = "";

int main()
{
	char *gName = "";
	cout<<"Enter Name: ";
	cin>>gName;
	//Test.name = gName;
	return 0;
}