这就是我今天编写的内容
#include <iostream> using namespace std; int function1() { cout<<"hello from function1()"; return 0; } int function2() { cout<<"hello from function2()"; return 0; } int main() { int func_diffresult = 0; func_diffresult = function1() - function2(); cout<<func_diffresult; /** prints 0 correctly **/ }
输出是来自function1()的function2()hello的hello.我认为输出应该是来自function2()的function1()hello的hello.我的编译器和我一起玩吗?