如何解决C++中 没有与这些操作数匹配的 "=" 运算符
#include<math.h>#include"stdafx.h"#include<iostream>usingstd::cout;usingstd::cin;usin...
#include<math.h>
#include "stdafx.h"
#include <iostream>
using std::cout;
using std::cin;
using std::endl;
int main()
{
int b = 5;
int a = 0;
cout << a = ++b + 6;
cout<< endl;
cout << b++ + 6;
cout << endl;
cout << --b;
cout << endl;
cout << --b + 6;
return 0;
} 展开
#include "stdafx.h"
#include <iostream>
using std::cout;
using std::cin;
using std::endl;
int main()
{
int b = 5;
int a = 0;
cout << a = ++b + 6;
cout<< endl;
cout << b++ + 6;
cout << endl;
cout << --b;
cout << endl;
cout << --b + 6;
return 0;
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询