예제 #1
0
파일: Program.cs 프로젝트: m17guy/homework
        static void Main(string[] args)
        {
            //killmemory();
            //killstack(1);
            int i = 5;

            Inc(i);//pass by copy
            Console.WriteLine(i);
            bubo a = new bubo();

            a.name = "the king";
            Console.WriteLine(a.name);
            clearname(a);
            Console.WriteLine(a.name);
        }
예제 #2
0
파일: Program.cs 프로젝트: m17guy/homework
 static void clearname(bubo b)
 {
     b.name = "no name";
 }