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;

}

 

 

   


 

备注

 

 

相关链接

                           

 

 




posted @ 2013-04-30 11:50  XE2011  阅读(125)  评论(0编辑  收藏  举报