as a simple example i want to get an output like :
What is your name? Brian
Hello, Brian, nice to meet you!
Here Brian is an input but i don't want to use any variables. i tried this :
#include<iostream>
#include<string>
using namespace std;
int main()
{
cout << "what is your name ? \n";
cin.get();
cout << "hello , " << cin.get() << ", nice to meet you";
}
but when i enter a string it gives me a number as output like when i insert A it shows me that it's 10, example : hello , 10, nice to meet you