Yurttas/PL/OOL/CS/F/03/00/10/01/A01.cs

From ZCubes Wiki
Revision as of 07:50, 7 November 2013 by MassBot1 (talk | contribs) (Created page with "<syntaxhighlight lang="csharp" line start="1" enclose="div">/** * Copyright(C) 2003 * All Rights Reserved. SAlih Yurttas, ZCubes, BitsOfCode Software Systems, Inc.. * * ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
 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 without 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 *  A01.cs
14 */
15
16
17using System;
18
19public class A01
20{
21  public static void Main(string[] args)
22  {
23    A G = new A();
24
25    int NA1 = G.SA1;
26
27    Console.WriteLine("NA1 = {0}", NA1);
28
29    int[] T1 = G.A1;
30
31    Console.WriteLine("--");
32
33    foreach (int i in T1)
34      Console.WriteLine("{0}", i);
35    Console.WriteLine();
36
37    int[] T2 = int[] {1,3,5,7,9};
38
39    G.A1 = T2;
40
41    T1 = G.A1;
42
43    Console.WriteLine("--");
44
45    foreach (int i in T1)
46      Console.WriteLine("{0}", i);
47    Console.WriteLine();
48  }
49}