Advertisement
Guest User

Untitled

a guest
Feb 1st, 2015
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. #include <sstream>
  4. using namespace std;
  5. int main ()
  6. {
  7. double firstnum(0);
  8. short x(0);
  9. string firststring;
  10. while(x!=4)
  11. {
  12. getline(cin,firststring);
  13. stringstream ss;
  14. ss << firststring;
  15. ss >> firstnum;
  16. ss.str("");
  17. ss.clear();
  18. x++;
  19. cout << "Some number" << firstnum << "\n";
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement