![]() |
#2
冰镇柠檬汁儿2006-04-19 09:10
|
char *content;
ifstream infile("D:\\e.coli_10k");
if ( (content = new char[Length]) == NULL)
exit(0);
infile >> content;
delete[]content;
infile.close();
但老是有unhandled exception出现,怀疑不可以这样输入content,但不知为什么. 另外,为何改用字符串数组char content[100]就没问题呢?
谢谢各位指教!!!
[此贴子已经被作者于2006-4-18 16:37:14编辑过]