www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/12/07/14:14:33

Message-ID: <D13FBFDEA70AD111A44900A0C9231693D9124C@postoffice.systran.com>
From: Chris Fought <CFought AT SYSTRAN DOT com>
To: "'djgpp AT delorie DOT com'" <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)
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 <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
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2448.0">
<TITLE>Re: Need Help!!  C++    Emergency!!!</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>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...</FONT></P>
<BR>

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

</BODY>
</HTML>
------_=_NextPart_001_01BF40CD.F15151D0--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019