#include <cstdio>
void tellStory(){
printf("Once there was a very famous building. \n");
printf("An actor was living in it. \nHe was telling stories.\n");
printf("The story was like this: \n\b"); tellStory();
}
int main(){
tellStory();
}
No matter which one you input, the result will still be 1.
1 2 3 4 5 6 7 8 9 10
#include <iostream>
usingnamespace std;
int main(){
bool to_be;
int question;
cin >> to_be;
question=( to_be ) || (! to_be );
// To be OR NOT To be, that is a question.
cout << question;
}
C++ knocks on Java's door. After waiting a few minutes, C++ leaves and comes back the next day where Java opens the door as soon as C++ appears. C++, impressed, asks, "How did you know I was here?" Java replies,"Didn't you just knock?"