My Question is about code given below#include
using namespace std;
cout << " Enter your name with space(E.g Joe Mark)
cin.getline( name, 15);
cout << line;
whenever I take a name from key board along with spaces the program crashes. However If I ismply enter name without spaces It works fine.
Why is this happening.
looking for kind reply.