新手询问一下两种输出和有何不同?
一种是#include <iostream>
int main()
{
// prompt user to enter two numbers
std::cout << "Enter two numbers:" << std::endl;
int v1, v2;
std::cin >> v1 >> v2;
std::cout << "The sum of " << v1 << " and " << v2
<< " is " << v1 + v2 << std::endl;
return 0;
}
另一种是#include<iostream>
int main()
{
std::cout<<"测试输出";
std::cout<<2*2*2*2*2*2*2*2;
std::cout<<std::endl;
return 0;
}