我在电脑vc2013上运行c++
// my first program in C++
#include <iostream>
int main()
{
std::cout<<“Enter two numbers:”<< std::endl;
int v1 =0;v2=0;
std::cin>>v1 >>v2;
std::cout <<“The sum of”<< v1 << “and” << v2 <<“is”<< v1+v2 << std::endl;
return 0;
}
之后电脑出现
Enter two numbers:
我按照书上说的 输入
3 7
并没有按书上说的出现
The sum of 3 and 7 is 10
这是为什么?
// my first program in C++
#include <iostream>
int main()
{
std::cout<<“Enter two numbers:”<< std::endl;
int v1 =0;v2=0;
std::cin>>v1 >>v2;
std::cout <<“The sum of”<< v1 << “and” << v2 <<“is”<< v1+v2 << std::endl;
return 0;
}
之后电脑出现
Enter two numbers:
我按照书上说的 输入
3 7
并没有按书上说的出现
The sum of 3 and 7 is 10
这是为什么?