Answers for "how to create an input function in 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

Code answers related to "how to create an input function in c++"

Browse Popular Code Answers by Language