Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <sstream>
- using namespace std;
- int main ()
- {
- double firstnum(0);
- short x(0);
- string firststring;
- while(x!=4)
- {
- getline(cin,firststring);
- stringstream ss;
- ss << firststring;
- ss >> firstnum;
- ss.str("");
- ss.clear();
- x++;
- cout << "Some number" << firstnum << "\n";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement