fork(1) download
  1. #include <iostream>
  2. #include <string>
  3. #include<stdio.h>
  4. #include<cstdlib>
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9. string ain;
  10. string pain;
  11. int a = 0, b= 15;
  12. bool aerzo = !b;
  13. getline(cin,ain);
  14. cout << ain+" is your name?\n";
  15. getline(cin,pain);
  16. cout << pain+" is your favorite food?\n\n";
  17.  
  18. if (a>b)
  19. cout << "a("+to_string(a)+") is greater than b("+to_string(b)+")";
  20. else
  21. if (a<b)
  22. cout << "a("+to_string(a)+") is less than b("+to_string(b)+")";
  23. else
  24. cout << "a("+to_string(a)+") and b("+to_string(b)+") are equal";
  25.  
  26. cout << aerzo;
  27.  
  28. system("pause");
  29. return 0;
  30. }
Success #stdin #stdout #stderr 0.01s 5320KB
stdin
Sikren
Pizza
stdout
Sikren is your name?
Pizza is your favorite food?

a(0) is less than b(15)0
stderr
sh: 1: pause: not found