| www.delorie.com/archives/browse.cgi | search |
| Message-ID: | <388A0EA6.7F34507D@sgi.net> |
| From: | John & Susie <jdk AT sgi DOT net> |
| X-Mailer: | Mozilla 4.5 [en] (WinNT; I) |
| X-Accept-Language: | en |
| MIME-Version: | 1.0 |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: Newbie Getting A Dozen Error "Undeclared" Messages in Program |
| References: | <86b6f4$mlr$1 AT nntp6 DOT atl DOT mindspring DOT net> |
| Lines: | 28 |
| Date: | Sat, 22 Jan 2000 15:10:14 -0500 |
| NNTP-Posting-Host: | 216.151.67.70 |
| X-Complaints-To: | abuse AT stargate DOT net |
| X-Trace: | news.sgi.net 948571848 216.151.67.70 (Sat, 22 Jan 2000 15:10:48 EST) |
| NNTP-Posting-Date: | Sat, 22 Jan 2000 15:10:48 EST |
| Organization: | Stargate Industries, LLC |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
"Celia T." wrote:
>
> Hello! I am learning C++ using Jesse Liberty's book, _C++ from Scratch_.
> Upon compiling my first program, I got a ton of error messages! Gasp!
>
> Is this because Liberty wrote the program to be used with the Microsoft
> Visual C++ compiler?
>
> Here are some of the error messages:
>
> Line 5: std::cout << "Associates, Inc. Version 0.2\n " << std::end1;
> Error message: Error: '::end1' undeclared (first use here)
As Damian said its endl (an L not a one)
>
> Line 40: std::cout << "How many positons? (";
> Error message: Error 'how' undeclared (first use this function)
^^^^^
We dont see the rest of your code but perhaps you missed an ending quote
in a previous line and the compiler seeing How right after (what it
thinks) is an end quote doesn't know what to do with How.
>
> If anyone can set me straight, thanks!
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |