#include <iostream>
using namespace std;
int main()
{
    string name;
    cout << "What is your name ? ";
    cin >> name;
    cout << "Your name is " << name << endl;
    return 0;
}
I don't get what exactly is happening in this code. I mean cout and cin aren't functions and you put either << or >> front of them and that's going to output or input but how?
 
    