Mail Archives: djgpp/1999/08/23/19:45:06
Message-Id: | <199908232202.SAA12178@delorie.com>
|
From: | "Dan Gold" <TedMat AT CoastNet DOT com>
|
To: | <djgpp AT delorie DOT com>
|
Subject: | Re: I'm so new it's frustrating. Almost ready to lose my will to learn.
|
Date: | Tue, 24 Aug 1999 23:32:16 -0700
|
X-MSMail-Priority: | Normal
|
X-Priority: | 3
|
X-Mailer: | Microsoft Internet Mail 4.70.1155
|
MIME-Version: | 1.0
|
Reply-To: | djgpp AT delorie DOT com
|
Where's the "charm" coming from I think you mean "char", I think the best
thing for someone new to do is get a book on C or C++ and read it through
plus do the examples...If you don't want to buy them I'm sure your local
public library has afew. Posting problems on a newgroup is really a slow
was to get answers and is only really worth it if you've exausted all
answers...=)
From ((--Dan Gold--))
----------
> From: Jari Oksanen <jari DOT oksanen AT helsinki DOT fi>
> To: djgpp AT delorie DOT com
> Subject: Re: I'm so new it's frustrating. Almost ready to lose my will to
learn.
> Date: Monday, August 23, 1999 6:17 AM
>
> Daryl Zero wrote:
> >
> > Boo, Hiss! YEAH! However *Ahwww*
> >
> > #include <stdio.h>
> >
> > void main()
> > {
> > charm me[20];
> >
> > printf("What is your name?")
> > scanf("%s",&me);
> > printf("darn glad to meet you, %s!\n,me);
> > }
> >
> > I get the error Error: unterminated string or charcter constant
> > Error: possible real start of unterminated
constant
> > There were some error's.
>
> 5c5
> < charm me[20];
> ---
> > char me[20];
> 7c7
> < printf("What is your name?")
> ---
> > printf("What is your name?");
> 9c9
> < printf("darn glad to meet you, %s!\n,me);
> ---
> > printf("darn glad to meet you, %s!\n",me);
>
> Some people would change a couple of other places, too.
> --
> J.Oksanen -- UHLA (University of Helsinki at Lahti)
- Raw text -