#include <iostream>
using namespace std;
int main()
{
int z;
int num = 36;
for (int x = 0; x <= 36 / 4; x++)
{
for (int y = 0; y <= 36 / 2; y++)
{
z = 36 - x - y;
if (z % 2 == 0 && (x * 4 + y * 2 + z / 2) == 36 && x + y + z = 36)//这里提示z必须为可修改左值,怎么解决呢?
{
cout << x << y << z;
}
}
}
return 0;
}

表达式必须为可修改左值怎么解决
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-