Hey,
#include<iostream>
#include<sstream>
using namespace std;
void manage(vector <string> scoreSheet)
{
int i;
stringstream q;
string z;
for(i=0;i<scoreSheet.size();i++)
{
q<<scoreSheet[i];
q>>z;
cout<<z<<endl;
}
}
I expected this program to print the first word of each string in vector but is printing the first value over and over again,any idea?
Desperate here :-/