[Solved] User Input in C++ like in Python


I don’t exactly know what you want to achieve, but I think this is what you’re looking for.

#include<iostream>
#include<string>

using namespace std;

int main()
{
   string user;

   /* ---- This part is in place of your python code --- */

   cout << "Please Enter your name"; cin >> user;
   cout << "Your name is" << user;

   /* --------------------- */

   return 0;
}

solved User Input in C++ like in Python