Ler duas colunas separadas por tab
c++ read two columns tab
#include
#include
#include
#include
using namespace std;
int main ()
{
vector
double x ;
int y ;
vector
vector
ifstream nada ;
nada.open("dados2.txt", ios::in);
while (!nada.eof( )) //if not at end of file, continue reading numbers
{
nada >> x ;
nada >> y ;
cout << x << " " << y << endl;
//get next number from file
}
return 0 ;
}