hi guys..! i need some help on how can i print out the output of my program.. the problem is, it will only print out the first char of a characters and i don't know how to use the pointer using an multidimensional array.
ex.
input:
jhonny
output:
j
here's my code:
char name[5][50];
*p;
for(i=0;i<5;i++)
{
cin.getline(name[i], 50)
}
for(i=0;i<5;i++)
{
cout<<"*name[i]<<"\n";
}
..i am using a string here..
guys i need your help for this..
i will appreciate your help so much.
thanks..