public void InsRandDate_cus(int count) // int count 갯수만큼 정보가 나옴.
 {
     for (int i = 0; i < count; i++)
     {
         listCust.Add(new Customer(rand.getName(), rand.getAge(), rand.getTel(), rand.getAddr(), rand.getGender()));
     }
 }
 public void InsRandDate_sell(int count) // int count 갯수만큼 정보가 나옴.
 {
     for (int i = 0; i < count; i++)
     {
         listSel.Add(new Seller(rand.getName(),
                                rand.getTel(),
                                rand.getJikwi(),
                                rand.getOffice()));
     }
 }
Esempio n. 3
0
 public void insRandData(int count)
 {
     for (int i = 0; i < count; i++)
     {
         listSell.Add(new Seller(
                          rand.getName(),
                          rand.getTel(),
                          rand.getJikwi(),
                          rand.getOffice()));
     }
 }
Esempio n. 4
0
 public void insRandData(int count)
 {
     for (int i = 0; i < count; i++)
     {
         listCust.Add(new Customer(
                          rand.getName(),
                          rand.getAge(),
                          rand.getTel(),
                          rand.getAddr(),
                          rand.getGender()));
     }
 }
Esempio n. 5
0
 public void insRandData(int count)
 {
     for (int i = 0; i < count; i++)
     {
         listcar.Add(new Car(
                         rand.getName(),
                         rand.getcolor(),
                         rand.getcompany(),
                         rand.getprice()
                         ));
     }
 }
        static void Main(string[] args)
        {
            RandData rand = new RandData();

            Customer[] cs = new Customer[10];

            for (int i = 0; i < cs.Length; i++)
            {
                cs[i] = new Customer(rand.getName(), rand.getTel(),
                                     rand.getAddress(), rand.getModel(), rand.getColor(),
                                     rand.getYear(), rand.getCompany());
                cs[i].printCustomerInfo();
                //Console.WriteLine(cs[i].ToString());
            }
        }
        static void Main(string[] args)
        {
            RandData rand = new RandData();

            Student[] st = new Student[10];
            for (int i = 0; i < st.Length; i++)
            {
                st[i] = new Student(rand.getName(), rand.getAge(),
                                    rand.getGender(), rand.getAddress());
                Console.WriteLine(st[i].ToString());
            }

            for (int i = 0; i < st.Length; i++)
            {
                st[9] = new Student("전우치", 24, '남', "조선 한양인근 두메산골");
                Console.WriteLine(st[i].ToString());
            }
        }