Input Output

 

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 v1v2;
    std::cin >> v1 >> v2;
    std::cout << v1 << " + " << v2
        << " = " << v1 + v2 << std::endl;    
    return 0;

}

 

 

   


 

备注

 

 

相关链接

                           

 

 




原文地址:https://www.cnblogs.com/xe2011/p/3051737.html