Difference between revisions of "Yurttas/PL/OOL/CS/F/03/00/05/A01.cs"
Jump to navigation
Jump to search
(Created page with "<syntaxhighlight lang="csharp" line start="1" enclose="div">/** * Copyright(C) 2003 * All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc.. * * ...") |
(No difference)
|
Latest revision as of 07:49, 7 November 2013
1/**
2 * Copyright(C) 2003
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 withConsole fee is hereby granted provided that this
8 * copyright notice appears in all copies.
9 *
10 * @date : September 1, 2003.
11 * @author : Salih Yurttas.
12 */
13
14
15public class A01
16{
17 public static void Main(string[] args)
18 {
19 A a0 = new A();
20
21 PutA(a0);
22
23 System.Console.WriteLine();
24
25 a0.OutI012();
26
27 System.Console.WriteLine();
28
29 a0.i0 = 3;
30 a0.SetI12(7);
31
32 int[] ia = new int[3];
33 ia = a0.GetI012();
34
35 PutA(ia);
36 }
37
38 public static void PutA(A a)
39 {
40 System.Console.WriteLine("i0 = {0}", a.i0);
41 System.Console.WriteLine("i1 = {0}", a.GetI1());
42 System.Console.WriteLine("i2 = {0}", a.GetI2());
43 }
44
45 public static void PutA(int[] a)
46 {
47 int n = a.Length;
48 for(int i=0; i<n; ++i)
49 System.Console.WriteLine("i{0} = {1}", i, a[i]);
50 }
51}