📜  c++ 读取控制台输入 - C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:52.813000             🧑  作者: Mango

代码示例1
// Include the library for console in-/outputs
#include 
// Include the libary for strings
#include 

// Main function
int main()
{
  // Initialize variable
  std::string value;
  // Read from console
  std::getline(std::cin, value);
}