C#시작하기

DEVELOP/C# 2006. 9. 11. 17:49
  • 기능1  // <-[namespace]
    ~~.CS
    ~~.CS
  • 기능2
    ~~.CS
    ~~.CS

using [namespace];  //기능을 불러옴
class hello
{
public static void Main()
{
Console.WriteLine("Hello, C# !");  //Console <-설계도명 // WriteLine <-메소드명
}
}


MSDN에서 설계도찾기

0
0



       Console.WriteLine("{0,-3}+{1,-3}={2,-3}", 99, 1, 100);  //기본
       Console.WriteLine("{0,-3}+{1,-3}={2,-3}", 100, 100, 200); //3자리정렬
       Console.WriteLine("{0,-3:f}+{1,-3:f}={2,-3:f}", 100, 100, 200); //3자리정렬//소수점2자리도 표현
AND