static void Main(string[] args) { ClimateMonitor monitor = new ClimateMonitor( new FileLogger("MyLog.txt")); monitor.start(); }
static void Main(string[] args) { ClimateMonitor monitor = new ClimateMonitor(new FileLogger("MyLog.txt")); //ClimateMonitor monitor = new ClimateMonitor(new ConsoleLogger()); // 콘솔창 입력 < - > 출력 monitor.start(); }
static void Main(string[] args) { // climate.log 라는 이름의 txt파일 생성 ClimateMonitor monitor = new ClimateMonitor(new FileLogger("climate.log")); // 콘솔창에 입력한 데이터 출력 //ClimateMonitor monitor = new ClimateMonitor(new ConsoleLogger()); monitor.start(); }
static void Main(string[] args) { ClimateMonitor moniter = new ClimateMonitor(new FileLogger("Hanoi.txt")); for (int i = 1; i < 13; i++) { moniter.hanoi_tower(i, 'A', 'B', 'C'); } }
static void Main(string[] args) { //ClimateMonitor monitor = new ClimateMonitor(new FileLogger("climate.log")); //폴더 C:\StudyCSharp\StudyCS\Interface\bin\Debug에 저장되어있음. ClimateMonitor monitor = new ClimateMonitor(new ConsoleLogger()); //콘솔에 바로 결과 뜸 monitor.start(); }
static void Main(string[] args) { ClimateMonitor monitor = new ClimateMonitor( new FileLogger("climate.log") ); //ClimateMonitor monitor = new ClimateMonitor( // new ConsoleLogger() // ); monitor.start(); }
static void Main(string[] args) { // monitor 객체는 애플리케이션이 시작된 디렉토리에 Mylog.txt를 만들고 여기에 로그를 남깁니다. //ClimateMonitor monitor = new ClimateMonitor(new FileLogger("MyLog.txt")); //monitor.start(); // 비타민 퀴즈 8-1 ClimateMonitor monitor2 = new ClimateMonitor(new ConsoleLogger()); monitor2.start(); }
static void Interface() { WriteLine("Interface()"); ClimateMonitor monitor_file = new ClimateMonitor(new FileLogger("MyLog.txt")); monitor_file.start(); //ClimateMonitor monitor_console = new ClimateMonitor(new ConsoleLogger()); //monitor_console.start(); }
static void Main(string[] args) { /* * ClimateMonitor monitor = new ClimateMonitor( * new FileLogger("climate.log") * ); */ ClimateMonitor monitor = new ClimateMonitor( new ConsoleLogger() ); monitor.start(); }
static void ch8() // interface { WriteLine("FileLogger Start"); ClimateMonitor monitor = new ClimateMonitor(new FileLogger("C:/temp/MyLog.txt")); monitor.strat(); WriteLine("ConsoleLogger Start"); ClimateMonitor monitor2 = new ClimateMonitor(new ConsoleLogger()); monitor2.strat(); IFormattableLogger logger = new ConsoleLogger2(); logger.WriteLog("The world is not flat"); logger.WriteLog("{0} + {1} = {2}", 1, 1, 2); }
static void Main(string[] args) { ClimateMonitor monitor = new ClimateMonitor(new ConsoleLogger()); monitor.start(); }