2012년 1월 30일 월요일
helloworld에서 해메긴 또 첨이네!
using System;
namespace ConsoleApplication1_helloworld
{
class helloworld
{
static void Main(string[]args)
{
//Console.WriteLine("hello");
Console.WriteLine("hello,{0},"args[0]);
}
}
}
뇌를 자극하는 C#중..
main메서드뒤의 (string[]args)가 인수를 를 받는것인데 명령줄의 인수를
받는다고 해서 해멧는데, 윈도우 실행창 cmd명령어로 검은창 띄우고 실행파일을 불르면서
동시에 인수를 넘겨주어야 오류없이 작동한다.
ex) helloworld.exe iu(인수)
피드 구독하기:
댓글
(
Atom
)
댓글 없음 :
댓글 쓰기