fork download
  1. #include <iostream>
  2. #include <string>
  3. using namespace std;
  4.  
  5. int main() {
  6. std::string napis = "6688559944 1";
  7. int st = 10;
  8. for ( std::string::iterator it = napis.begin() ; it < napis.end(); it+=2)
  9. {
  10. if(*it == ' ') break;
  11. int liczba = ((*it)-'0')*10 + ((*(it+1))-'0');
  12. liczba -= st;
  13. std::cout << static_cast<char>(liczba) << std::endl;
  14. }
  15. return 0;
  16. }
Success #stdin #stdout 0s 3468KB
stdin
Standard input is empty
stdout
8
N
-
Y
"