#include<iostream>
int main()
{
//练习1.3:
std::cout << "Hello, World" << std::endl;
//练习1.4:
int i = 5, j = 6;
std::cout << i * j << std::endl;
//练习1.5:
std::cout << "Language is poor,"
<< "show me your code!" << std::endl;
//练习1.6:
int v1 = 1;
int v2 = 2;
std::cout << "The sum of " << v1
<< " and " << v2
<< " is " << v1 + v2 << std::endl;
}
C++Primer:练习1.3 1.4 1.5 1.6
猜你喜欢
转载自blog.csdn.net/Xgggcalled/article/details/108477077
今日推荐
周排行