Guest User

Untitled

a guest
May 21st, 2018
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.38 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. void doSomething();
  6.  
  7. char useFunctions()
  8. {
  9.    doSomething();
  10.    somethingElse();
  11.  
  12.    return 'c';
  13. }
  14.  
  15. int somethingElse()
  16. {
  17.    cout << "I will never happen  :(";
  18.    return -1;
  19. }
  20.  
  21. int main()
  22. {
  23.    useFunctions();
  24.    return 0;
  25. }
  26.  
  27. void doSomething()
  28. {
  29.    cout << "I work if you don't call somethingElse() from useFunctions";
  30. }
Add Comment
Please, Sign In to add comment