Yurttas/PL/SL/python/F/08/00/01/01/a 00.cpp

From ZCubes Wiki
Revision as of 23:09, 7 November 2013 by MassBot1 (talk | contribs) (Created page with "<syntaxhighlight lang="cpp" line start="1" enclose="div">/* Copyright(C) 1998 All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc.. Perm...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
 1/*
 2   Copyright(C) 1998
 3   All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc..
 4
 5   Permission to use, copy, modify, and distribute this
 6   software and its documentation for EDUCATIONAL purposes
 7   and without fee is hereby granted provided that this
 8   copyright notice appears in all copies.
 9
10   date   : January 1, 1998.
11   author : Salih Yurttas.
12
13   a_00.cpp
14*/
15
16
17#include <iostream>
18
19using namespace std;
20
21#include "A.h"
22
23int main(int argc, char* argv[]) {
24
25  A a1;
26
27  cout << "initial values after default construction-A() /";
28  cout << endl;
29
30  cout << a1.get_i1();
31  cout << endl;
32  cout << a1.get_i2();
33  cout << endl;
34
35  A a2(2);
36
37  cout << "initial values after default construction-A(2) /";
38  cout << endl;
39
40  cout << a2;
41  cout << endl;
42
43  a1.set_i1(4);
44  a1.set_i2(6);
45
46  cout << "updated values - a1 /";
47  cout << endl;
48
49  cout << a1;
50  cout << endl;
51
52  a2.set_i1_i2(3);
53
54  cout << "updated values - a2 /";
55  cout << endl;
56
57  cout << a2;
58  cout << endl;
59
60  a2.set_i1_i2(1,
61               7);
62
63  cout << "updated values - a2 /";
64  cout << endl;
65
66  cout << a2;
67
68}