T
tvn007
Please help why this code not compile.
//////////////////////////////////////////////////////////////////////////////////
#include <iostream>
#include <string>
#include <fstream>
using namespace std;
////////////////////////////////////////////////////////////
// this code just read data from "test.txt"
// put each line in string input_line
// and print it out
////////////////////////////////////////////////////////////
int main (void){
ifstream in ("test.txt");
string line;
while (getline(in,line)){
istringstream stream(line);
}
return 0;
}
//////////////////////////////////////////////////////////////////////////////////
#include <iostream>
#include <string>
#include <fstream>
using namespace std;
////////////////////////////////////////////////////////////
// this code just read data from "test.txt"
// put each line in string input_line
// and print it out
////////////////////////////////////////////////////////////
int main (void){
ifstream in ("test.txt");
string line;
while (getline(in,line)){
istringstream stream(line);
}
return 0;
}