Char Array. (Newbie)
From: Duncan (dc60_at_uow.edu.au)
Date: 04/30/04
- Next message: Leor Zolman: "Re: Problem with overloading function templates"
- Previous message: Jeff Schwab: "Re: Initializer list issue"
- Next in thread: Jeff Schwab: "Re: Char Array. (Newbie)"
- Reply: Jeff Schwab: "Re: Char Array. (Newbie)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Next message: Leor Zolman: "Re: Problem with overloading function templates"
- Previous message: Jeff Schwab: "Re: Initializer list issue"
- Next in thread: Jeff Schwab: "Re: Char Array. (Newbie)"
- Reply: Jeff Schwab: "Re: Char Array. (Newbie)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|