摘要: 代码如下:#include "stdafx.h"#include#include //是因为要使用cout#include //必须要加,因为要使用ifstreamint main(){ //把字符串写进文件中 std::string str_d... 阅读全文
posted @ 2017-08-30 14:31 birdhumen鸟人 阅读(492) 评论(0) 推荐(0) 编辑
摘要: using namespace std;int main(){ std::string dd = "ddd";//会报错namespace "std" has no member "string",因为没有引入string库}#includeint main(){ ... 阅读全文
posted @ 2017-08-30 12:37 birdhumen鸟人 阅读(778) 评论(0) 推荐(0) 编辑