c++
2022/03/06 18:53
瀏覽786
迴響2
推薦0
引用0
#include <iostream>
using namespace std;
#define show_message(xxx) { cout << xxx << endl; }
void myfunc1();
void myfunc2();
void myfunc3();
void myfunc1() {
show_message("starting myfunc1, then calling myfunc2");
myfunc2();
show_message("ending myfunc1 and all_myfuncs end.");
}
void myfunc2() {
show_message("starting myfunc2, and then call myfunc3");
myfunc3();
show_message("ending myfunc2");
}
void myfunc3() {
show_message("starting myfunc3");
show_message("ending myfunc3");
}
int main() {
show_message("starting main");
myfunc1();
show_message("ending main and all stop!");
cout << endl; // print a blank line
return 0;
}




