コード例 #1
0
        static void Main(string[] args)
        {
            Person person = new Person("David", "Barnes", 25);

            Person person2 = new Person("Joe", "Somebody", 85);

            person.PrintFullName();
            person2.PrintFullName();
            person.PrintFullName();

            PersonCollection personCollection = new PersonCollection();

            personCollection.addPerson(person);

            personCollection.addPerson(new Person("Not", "Declared First", 34));

            Console.WriteLine(personCollection.getPersonCollectionToString());

            Console.WriteLine("Demo to show how branching works");
            Console.WriteLine("Here is another line");

            Console.WriteLine();
            Console.WriteLine("Different stuff");
            Console.WriteLine("Moar. All the different stuff");
        }
コード例 #2
0
        static void Main(string[] args)
        {
            Person person = new Person("Andy", "Cullen", 26);

            person.PrintFullName();
            person.PrintFullName();
            person.PrintFullName();
        }
コード例 #3
0
ファイル: Program.cs プロジェクト: Tpape7972/cis237Inclass1
        static void Main(string[] args)
        {
            Person person = new Person("Tiffany", "Pape", 34);

            person.PrintFullName();
            person.PrintFullName();
            person.PrintFullName();
        }
コード例 #4
0
        /// <summary>
        /// Main.
        /// </summary>
        /// <param name="args">Command-Line Args</param>
        static void Main(string[] args)
        {
            Person person = new Person("Aa", "Aaa", 20);
            Person personB = new Person("Bb", "Bbb", 300);
            Person personC = new Person("Cc", "Ccc", 5);

            person.PrintFullName();
            personB.PrintFullName();
            personC.PrintFullName();

            PersonCollection personCollection = new PersonCollection();

            personCollection.AddPerson(person);
            personCollection.AddPerson(new Person("Not", "Declared First", 34));

            Console.WriteLine(personCollection.GetPersonCollectionToString());
        }
コード例 #5
0
ファイル: Program.cs プロジェクト: jharvey7136/cis237Inclass1
        static void Main(string[] args)
        {
            Person person = new Person("John", "Harvey", 25);

            Person person2 = new Person("Joe", "Somebody", 85);

            person.PrintFullName();
            person2.PrintFullName();
            person.PrintFullName();

            PersonCollection personCollection = new PersonCollection();

            personCollection.addPerson(person);

            personCollection.addPerson(new Person("Not", "Declared First", 34));

            Console.WriteLine(personCollection.getPersonCollectionToString());
        }
コード例 #6
0
        static void Main(string[] args)
        {
            Person person = new Person("David", "Barnes", 25);

            person.PrintFullName();

            PersonCollection personCollection = new PersonCollection();

            personCollection.addPerson(person);

            personCollection.addPerson(new Person("Not", "DeclaredFirst", 34));

            Console.WriteLine(personCollection.getPersonCollectionToString());

            Console.WriteLine("Branchsona! Ziodyne!");

            Console.WriteLine("");
            Console.WriteLine("Branch Mage used Branchraga.");
        }
コード例 #7
0
ファイル: Program.cs プロジェクト: Naboudiana/cis237Inclass1
        static void Main(string[] args)
        {
            Person person1 = new Person("Seynabou", "Diagne", 24);

            Person person2 = new Person("Abou", "Mbodji", 27);

            person1.PrintFullName();
            person1.PrintAge();
            Console.WriteLine();
            person2.PrintFullName();
            person2.PrintAge();

            Console.WriteLine("\n\n");

            person1.Identity();
            Console.WriteLine("\n");
            person2.Identity();

            Console.ReadLine();
        }
コード例 #8
0
ファイル: Program.cs プロジェクト: andrejs201/cis237Inclass1
        static void Main(string[] args)
        {
            Person person = new Person("Andrejs", "Tomsons", 23);
            Person person2 = new Person("Joe", "Somebody", 85);

            person.PrintFullName();
            person2.PrintFullName();
            person.PrintFullName();

            PersonCollection personCollection = new PersonCollection();

            personCollection.AddPerson(person);
            personCollection.AddPerson(new Person("Not", "Declared First", 34));

            Console.WriteLine(personCollection.GetPersonCollectionToString());
            Console.WriteLine("Branching demo");
            Console.WriteLine("Another line");

            Console.WriteLine("Different things");
            Console.WriteLine("More Different things");
        }
コード例 #9
0
 public void AddPerson(Person person)
 {
     personArray[lengthOfArray] = person;
     lengthOfArray++;
 }
コード例 #10
0
 public void addPerson(Person person)
 {
     personArray[arrayCounter] = person;
     arrayCounter++;
 }
コード例 #11
0
ファイル: Program.cs プロジェクト: DGibson86/cis237Inclass1
        static void Main(string[] args)
        {
            Person person = new Person("Dustin","Gibson", 29);

            person.PrintFullName();
        }
コード例 #12
0
ファイル: Program.cs プロジェクト: Shogun121/cis237Inclass1
        static void Main(string[] args)
        {
            Person person = new Person("Robert","Cooley",20);

            person.PrintFullName();
        }