1234567891011
#include <iostream> void main() { char x; std::cout << "Enter your full name : \n"; std::cin >> x; std::cout << x; }
char x;
1234567891011121314
#include<string> #include<iostream> using namespace std; int main(){ string name; cout<<"Enter your name: "; getline(cin, name); cout<<name; return 0; }