这是我今天编码的
#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 **/
}
输出是 get is hello from function2()hello from function1()
。我认为输出应该是hello from function1()hello from function2()
. 我的编译器在玩我吗?