string line;
int input;
stringstream linestream;
cout << "\nEnter integer: ";
getline(cin,line);
cout << "\nNumber is << line;
when i'm trying to print the String line: i'm getting the entered no plus some unknown numbers for eg. if i enter 951 the output would be 951 289792 some garbage and i don't want to use integer. And there is no cin>> statement b4 this code