Advertisement
STANAANDREY

colsiconv

Nov 9th, 2018
295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.49 KB | None | 0 0
  1. #include <iostream>
  2. #include <math.h>
  3.  
  4. #include <sstream>
  5. #include <string>
  6. #include <windows.h>
  7. #include <conio.h>
  8. using namespace std;//||or;\s
  9.  
  10. int main()
  11.  {
  12.     HANDLE h= GetStdHandle(STD_OUTPUT_HANDLE);
  13.    SetConsoleTextAttribute(h,FOREGROUND_GREEN|FOREGROUND_INTENSITY);
  14.    SetConsoleTextAttribute(h,BACKGROUND_BLUE|BACKGROUND_INTENSITY);
  15. system ("CLS");
  16.  
  17.   string s;
  18.    getline(cin,s);
  19.   stringstream geel (s);
  20.  
  21. int x=0;
  22.    geel>>x;
  23. cout<<"x="<<x;
  24. //*/
  25.  
  26.  
  27. return 0;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement