Category : C++ Source Code
Archive   : CPPTUT.ZIP
Filename : PROTYPE2.CPP

 
Output of file : PROTYPE2.CPP contained in archive : CPPTUT.ZIP
// Chapter 4 - Program 2
#include

void do_stuff(int, float, char);

main()
{
int arm = 2;
float foot = 1000.0;
char lookers = 65;

do_stuff(3, 12.0, 67);
do_stuff(arm, foot, lookers);
}

void do_stuff(int wings, // Number of wings
float feet, // Number of feet
char eyes) // Number of eyes
{
cout << "There are " << wings << " wings." << "\n";
cout << "There are " << feet << " feet." << "\n";
cout << "There are " << eyes << " eyes." << "\n\n";
}




// Result of execution
//
// There are 3 wings.
// There are 12 feet.
// There are C eyes.
//
// There are 2 wings.
// There are 1000 feet.
// There are A eyes.


  3 Responses to “Category : C++ Source Code
Archive   : CPPTUT.ZIP
Filename : PROTYPE2.CPP

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/