Home > Back-end >  Pray god give directions
Pray god give directions

Time:10-03

I want to achieve reads from standard input variable number of input data, has been wrong, then simplify code function of the most simple HTML code is as follows, found that even the most simple code can't perform cout that last sentence and asked what the problem is caused by, can't think out what is going wrong T_T, environment is code: 13.12 blocks in tears to answer
 
# include & lt; Iostream>
using namespace std;

Int main ()
{
Int sum=0, b=0;
While (cin> B)
The sum +=b;
cout<& lt;" Sum="& lt; return 0;
}

CodePudding user response:

Simple question, ask baidu ah
http://blog.csdn.net/weapon_tian_xia/article/details/6895541

CodePudding user response:

# include & lt; Iostream>
# include & lt; Stdio. H>

using namespace std;

Int main ()
{
Int sum=0, b=0;
While (cin> B)
The sum +=b;
cout<& lt;" Sum="& lt; The scanf (" % * C ");
return 0;
}


Press CTRL + z to enter after cout<& lt;" Sum="& lt;
  • Related