home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Liren Large Software Subsidy 7
/
07.iso
/
c
/
c063
/
1.ddi
/
EXAMPLES.ZIP
/
INTRO3.CPP
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
C/C++ Source or Header
|
1992-02-18
|
278 b
|
16 lines
//INTRO3.CPP--Example from Chapter 3, "An Introduction to C++"
#include <iostream.h>
int main()
{
int pounds;
int total, bags;
pounds = 50;
bags = 1000;
total = bags * pounds;
cout << "There are " << total << "lbs. in 1000 bags of beans\n";
return 0;
}