【发布时间】:2011-02-06 16:49:05
【问题描述】:
#include<string>
...
string in;
//How do I store a string from stdin to in?
//
//gets(in) - 16 cannot convert `std::string' to `char*' for argument `1' to
//char* gets (char*)'
//
//scanf("%s",in) also gives some weird error
同样,我如何将in 写入标准输出或文件??
【问题讨论】: