Home > Back-end >  To solve the
To solve the

Time:12-03

C language such as A + B=300, update A variable's value, can transform as the B? Still need to c + + can be realized

CodePudding user response:

B=300 - A;

CodePudding user response:

This kind of writing is wrong, you get A + B is constant, not do lvalue,

CodePudding user response:

What's the problem?

CodePudding user response:

Written as A + B=300; Is not A legal statement, A + B is an expression, the expression is A right value, it is not allowed to write on the left of the equals sign,

CodePudding user response:

Have a thread
In the lost B=1/f, 300 - A; Execute code can add delay sleep what

CodePudding user response:

 
#include
Int main ()
{
While (true)
{
Int a, int b;
Cin> a;
B=300 - a;
STD: : cout}
return 0;
}

  • Related