Answers for "c++ read console input"

C++
2

c++ read console input

// Include the library for console in-/outputs
#include <iostream>
// Include the libary for strings
#include <string>

// Main function
int main()
{
  // Initialize variable
  std::string value;
  // Read from console
  std::getline(std::cin, value);
}
Posted by: Guest on April-08-2021
4

how to get input from the console in c++

int age;
cin >> age;
Posted by: Guest on March-04-2020

Code answers related to "c++ read console input"

Browse Popular Code Answers by Language