fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. using namespace std;
  5.  
  6. #define THE_VALUE_OF_G 5
  7.  
  8. int get_g()
  9. {
  10. return THE_VALUE_OF_G;
  11. }
  12.  
  13. int main()
  14. {
  15. int g;
  16.  
  17. if ((g = get_g()) == 7)
  18. {
  19. cout << "g is 7; go about your day" << endl;
  20. }
  21. else
  22. {
  23. cout << "g is not 7, it's " << g << "; please investigate" << endl;
  24. }
  25.  
  26. return 0;
  27. }
Success #stdin #stdout 0.01s 5304KB
stdin
Standard input is empty
stdout
g is not 7, it's 5; please investigate