首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

大家帮小弟我看下这个程序的异常()~

2012-02-23 
大家帮我看下这个程序的错误(在线等)~~#include fstreamusingnamespacestd//-------------------------

大家帮我看下这个程序的错误(在线等)~~
#include <fstream>
using   namespace   std;
//-------------------------------------
int   main(){
    ifstream   in( "a.in ");
    ofstream   out( "a.out ");
    for(string   str;   getline(in,   str);   )
        out < <str < <endl;
}
        程序编译的时候提示有一个错误
    “error   C2065:   'getline '   :   undeclared   identifier”
            不知道怎样修改      
        有那位大虾知道的请指教```

[解决办法]
#include "string "
[解决办法]
#include <string>
[解决办法]
你觉得有这种格式的文件吗?
换成a.txt试试

热点排行