this is my current code , i have to print every world of my name on a new line
include "stdafx.h"
#include "iostream"
#include "string"
using namespace std;
int main ()
{
    string a;
    char j[100];
    int i, c, b; 
    cout <<"enter your full  name ";
        getline(cin,a);
        cout << " ur name is " << a << endl;
c=a.size(); 
for (b=0; b<=c; b++)
{
j[b]=a[b];
j[b]='\0';
}
system ("pause");
return 0; 
}
how can i print every part of my name on a new line ? ex : input : geroge ashley mark . output : george (newline) ashley (newline) mark
 
    