Char Array. (Newbie)

From: Duncan (dc60_at_uow.edu.au)
Date: 04/30/04


Date: 30 Apr 2004 07:38:02 -0700

I wish to insert a movie title into a char array (e.g Indiana Jones
and the Last Crusade) However all i am getting when I output is
Indiana.

I have declared the array

char Title[50];

then

cin >> Title;

but all I get when I cout << Title is Indiana.

I want to make it so Title[0] is Indiana, Title[1] is Jones ...etc

Is this possible any help would be appreiciated.

Thanks in Advance.



Relevant Pages