Why do I fail to extract an integer value into the Num variable?
Num
#include #include #include usi
Why are you reading into a temp string variable?
string
You can just read from the stringstream into an int...
int main() { string Digits("1 2 3"); stringstream ss(Digits); int Temp; vector Tokens; while(ss >> Temp) Tokens.push_back(Temp); }