Message-ID: From: Chris Fought To: "'djgpp AT delorie DOT com'" Subject: Re: Need Help!! C++ Emergency!!! Date: Tue, 7 Dec 1999 11:13:04 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01BF40CD.F15151D0" Reply-To: djgpp AT delorie DOT com This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01BF40CD.F15151D0 Content-Type: text/plain; charset="iso-8859-1" You might want to try using ARGV/ARGC functions do this. They are generally used to count (parse) the number of characters entered by the user at a command line. The only real problem with this approach is that ARGV/ARGC will see a string of characters as a single argument unless it has a space separator (example axfji is only 1 argument but a x f j i is five arguments). One other thing to note as well with Argv and Argc, the program execution name (name of your program .exe will be considered the first argument as far as argv/argc are concerned, and since it will by default use zero indexing, begin with argument 0). I hope that this helps... S. M. Halloran wrote in message news:<199912031749 DOT TAA13609 AT www DOT Foo DOT COM>... > On 3 Dec 99, Weiqi Gao was found to have commented thusly: > > > news wrote: > > > > > > I am doing a Project right now, I have totally No ideas how to do it. The > > > langage we use is C++ > > > > > > I have to find out how many letter user typed. > > > > > > Ex. axfji (5 Letters) > > > > > > Therefore, I have to say they have enter 5 Letters. > > > > > > Anyone know how to write that program to check how many letter the user has > > > enter? > > > > > > If you know the Answer, Please send E-Mail To me at geoffry AT home DOT com > > > > Read up on the cin and the string classes. > > But that's the emergency: he doesn't have time to read up on it, because > he's allowed his assignment to become due imminently. ;-) > > > Weiqi Gao > > weiqigao AT a DOT crl DOT com > > > > > > Mitch Halloran > Research (Bio)chemist > Duzen Laboratories Group > Ankara TURKEY ------_=_NextPart_001_01BF40CD.F15151D0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Re: Need Help!! C++ Emergency!!!

You might want to try using ARGV/ARGC functions do = this. They are generally used to count (parse) the number of characters = entered by the user at a command line. The only real problem with this = approach is that ARGV/ARGC will see a string of characters as a single = argument unless it has a space separator (example axfji is only 1 = argument but a x f j i is five arguments). One other thing to note as = well with Argv and Argc, the program execution name (name of your = program .exe will be considered the first argument as far as argv/argc = are concerned, and since it will by default use zero indexing, begin = with argument 0). I hope that this helps...


S. M. Halloran <mitch AT duzen DOT com DOT tr> wrote in = message news:<199912031749 DOT TAA13609 AT www DOT Foo DOT COM>...
> On 3 Dec 99, Weiqi Gao was found to have = commented thusly:
>
> > news wrote:
> > >
> > > I am doing a Project right now,  = I have totally No ideas how to do it. The
> > > langage we use is C++
> > >
> > > I have to find out how many letter = user typed.
> > >
> > > Ex.   = axfji      (5 Letters)
> > >
> > > Therefore,  I have to say they = have enter 5 Letters.
> > >
> > > Anyone know how to write that program = to check how many letter the user has
> > > enter?
> > >
> > > If you know the Answer,  Please = send E-Mail To me at  geoffry AT home DOT com
> >
> > Read up on the  cin  and = the  string  classes.
>
> But that's the emergency:  he doesn't have = time to read up on it, because
> he's allowed his assignment to become due = imminently.  ;-)
>
> > Weiqi Gao
> > weiqigao AT a DOT crl DOT com
> >
>
>
>
> Mitch Halloran
> Research (Bio)chemist
> Duzen Laboratories Group
> Ankara       = TURKEY

------_=_NextPart_001_01BF40CD.F15151D0--