logo
  • 教程列表
  • SO官方文档
  • c ++中的基本输入输出
    • 用户输入和标准输出
  1. StackOverflow 文档
  2. C++ 教程
  3. c ++中的基本输入输出
  4. 用户输入和标准输出

用户输入和标准输出

Created: November-22, 2018

#include <iostream>

int main()
{
    int value;
    std::cout << "Enter a value: " << std::endl;
    std::cin >> value;
    std::cout << "The square of entered value is: " << value * value << std::endl;
    return 0;
}
  • c ++中的基本输入输出

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 关于我们
  • 免责声明