일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- LSTM
- 삼성소프트웨어멤버십
- dataframe
- GT-S80
- ipad
- SPL
- Splunk
- Numpy
- pip
- mean
- synology
- javascript
- pandas
- E-P1
- GitHub
- install
- Button
- imread
- Series
- SciPy
- keras
- RNN
- mariadb
- index
- pycharm
- CNN
- DFS
- Python
- 알고리즘
- Lotto
- Today
- Total
잠토의 잠망경
학교 강의 내용 1st 본문
Charles Petzold의 내용을 실습했습니다.
Date.cs
==================================================================================
using System;
class PropertyTest
{
static void Main()
{
Date dateMoonWalk = new Date();
try
{
dateMoonWalk.Year = 1969;
dateMoonWalk.Month = 12;
dateMoonWalk.Day = 20;
Console.WriteLine("Moon walk: {0}, Day of Year: {1}",
dateMoonWalk, dateMoonWalk.DayOfYear());
}
catch (Exception e)
{
if(e.ToString() == "Year")
{
Console.WriteLine("Wrong Year");
}
else if (e.ToString() == "Month")
{
Console.WriteLine("Wrong Month");
}
else
{
Console.WriteLine("Wrong Day");
}
}
}
}
===================================================================================
PropertyTest.cs
===================================================================================
using System;
class PropertyTest
{
static void Main()
{
Date dateMoonWalk = new Date();
dateMoonWalk.Year = 1969;
dateMoonWalk.Month = 7;
dateMoonWalk.Day = 20;
Console.WriteLine("Moon walk: {0}, Day of Year: {1}",
dateMoonWalk, dateMoonWalk.DayOfYear());
}
}
===================================================================================
실행화면
