64,654
社区成员
发帖
与我相关
我的任务
分享
#include <iostream>
using namespace std;
int f1()
{
cout<<"f1"<<endl;
return 1;
}
int f2()
{
cout<<"f2"<<endl;
return 2;
}
int f3()
{
cout<<"f3"<<endl;
return 3;
}
int main()
{
cout <<"first--"<<f1()<<" second--"<<f2()<<" third--"<<f3()<< endl;
return 0;
}
可以看到运行结果为
f3
f2
f1
first--1 second--2 third--3
这明显证明cout在执行的时候为从右向左先执行,然后在输出的时候为按照原来的顺序在从左像右的输出。
引自https://www.cnblogs.com/freedom314/p/5864365.html
如果没有黄线这块,那么row和col是未初始化状态。