C++计算x=2,y=3,z=4计算z+=x++||y++||++z求x,y,z的值

来源:学生作业学帮网 编辑:学帮网 时间:2024/05/12 20:53:56

C++计算x=2,y=3,z=4计算z+=x++||y++||++z求x,y,z的值




#include<iostream>


using namespace std;


int main()
{
int x(2),y(3),z(4);
z+=x++||y++||++z;
cout<<"x="<<x<<endl<<"y="<<y<<endl<<"z="<<z<<endl;
return 0;
}