Upload
others
View
0
Download
0
Embed Size (px)
Citation preview
2
10. Classㅣ Practice 2
2
3
10. Classㅣ Practice 2
//프로그램 종료 함수 exit(100);
4
10. Classㅣ Practice 2
4
5
10. Classㅣ Practice 2
int gcd(int p, int q) { if (q == 0) return p; return gcd(q, p % q); }
6
10. Classㅣ Practice 2
6
//정규화 됨
7
10. Classㅣ Practice 2
8
10. Classㅣ Practice 2
두 값이 같음
fr3가 this임을 알 수 있음
9
10. Classㅣ Practice 2
10
10. Classㅣ Practice 2
11
10. Classㅣ Practice 2
b d bc ad
a c ac
b d bc ad
a c ac
b d bd
a c ac
b d bc
a c ad
12
10. Classㅣ Practice 2
13
10. Classㅣ Practice 2
정상적인 상태의 출력 에러에 대한 예외 처리
14
10. Classㅣ Practice 2
15
10. Classㅣ Practice 2
16
10. Classㅣ Practice 2
정상적인 상태의 출력 에러에 대한 예외 처리