ifstream

来源:互联网 发布:手机铃声制作软件 编辑:程序博客网 时间:2024/05/23 01:13

  ifstream ifs;

  ifs.open ("test.txt", ifstream::in);

这两段代码与

ifstream ifs(xx, ifstream::in);

相同。

不需要用open。跑了一下感觉是这样。C++太难学了。

0 0
原创粉丝点击