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

 
Output of file : OPEN.CPP contained in archive : CPPTUT.ZIP
// Chapter 5 - Program 1
#include

struct one_datum {
int data_store;
};

main()
{
one_datum dog1, dog2, dog3;
int piggy;

dog1.data_store = 12;
dog2.data_store = 17;
dog3.data_store = -13;
piggy = 123;

cout << "The value of dog1 is " << dog1.data_store << "\n";
cout << "The value of dog2 is " << dog2.data_store << "\n";
cout << "The value of dog3 is " << dog3.data_store << "\n";
cout << "The value of piggy is " << piggy << "\n";
}




// Result of execution
//
// The value of dog1 is 12
// The value of dog2 is 17
// The value of dog3 is -13
// The value of piggy is 123



  3 Responses to “Category : C++ Source Code
Archive   : CPPTUT.ZIP
Filename : OPEN.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/