标签:个数 muse value 数字 return out style span class
#include <iostream> int getValueFromUser() { std::cout << "请输入一个数字: " << std::endl; int a; std::cin >> a; return a; } int main() { int x = getValueFromUser(); int y = getValueFromUser(); std::cout << x << " + " << y << " = " << x + y << std::endl; return 0; }
标签:个数 muse value 数字 return out style span class
原文地址:http://www.cnblogs.com/funnyweb/p/6215796.html