Answers for "input handle c++"

C++
0

input in c++

int main(){
  std::string firstname; //variable created as a string
  std::cout << "What's your first name\n";
  std::cin >> firstname;//asking for the users' first name
  std:: cout << "Hello " << firstname
Posted by: Guest on January-21-2022

Browse Popular Code Answers by Language