Standard Input and Output Objects
关键点
std::cerr
std::cin
std::cout
std::clog
实现过程
#include <iostream> int main() { std::cout << "Enter two numbers:" << std::endl; int v1, v2; std::cin >> v1 >> v2; std::cout << v1 << " + " << v2 << " = " << v1 + v2 << std::endl; return 0; } |
图
备注
相关链接