[求助]紧急求助为什么说getline()没有定义
如题,
#include "Stack3.h"
#include <cstring>
#include <fstream>
#include <iostream>
using namespace std;
void main(int argc,char * argv[])
{
ifstream in(argv[1]);
Stack textlines;
string line;
while(getline(in,line))//error C2065: 'getline' : undeclared identifier
textlines.push(new string(line));
string * s;
while((s=(string *)textlines.pop()!=0)
{
cout<<*s<<endl;
delete s;
}
}