为什么在win2000下,我写的cpp有问题?
#include <iostream>
class firstclass
{
public:
char* name;
};
int main(int argc, char *argv[])
{
firstclass first;
cin >>first.name;
return 0;
}
运行到cin是有发生的问题,
"0x004017f0"指令引用的"0x0000023f"内存。该内存不能为"written"。
编译器是dev-c++,vc也试过,一样!