Yurttas/PL/OOL/Cplusplus/F/03/01/00/A.h

From ZCubes Wiki
Revision as of 21:50, 6 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   : September 1, 1998.
11   author : Salih Yurttas.
12
13   A.h
14*/
15
16
17class A {
18public:
19  int i0;
20
21  A() { i0=0; i1=2; i2=8; }
22
23  A(int i) { i0=i; i1=i+1; i2=i+2; }
24
25  int f1() { return i1; }
26
27  int f2() { return i2; }
28
29  void f3(int i) { i1+=i; i2-=i; }
30
31private:
32  int i1,
33      i2;
34};