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

  • 關於本站
  • 免責聲明