摘要:
代码如下:#include "stdafx.h"#include#include //是因为要使用cout#include //必须要加,因为要使用ifstreamint main(){ //把字符串写进文件中 std::string str_d... 阅读全文
摘要:
using namespace std;int main(){ std::string dd = "ddd";//会报错namespace "std" has no member "string",因为没有引入string库}#includeint main(){ ... 阅读全文