#define _CRT_SECURE_NO_WARNINGS 1
#include
#include
#include
int main()
{
int a2 = 1;
int b2 = 0;
while (a2++ = b2 )
{
}
std::cout << a2 << std::endl;
}
while (a2++ = b2 )不可以这么写赋值语句的。你应该是想写判断语句吧
while(b2 == a2++)
while里面的操作不对,不能用=号,