Q>
Y2K와 보잉787과 같은 문제를 방지하기 위해서는 프로그램을 어떻게 설계해야 할까요?
A>
Y2K 문제
https://en.wikipedia.org/wiki/Year_2000_problem
Year 2000 problem - Wikipedia
From Wikipedia, the free encyclopedia Jump to navigation Jump to search Class of computer bugs related to dates beginning in the year 2000 The Year 2000 problem, also known as the Y2K problem, the Millennium bug, Y2K bug, the Y2K glitch, or Y2K, refers to
en.wikipedia.org
보잉787 문제
Boeing 787 Dreamliners contain a potentially catastrophic software bug
Beware of integer overflow-like bug in aircraft's electrical system, FAA warns.
arstechnica.com
Y2K와 보잉787 두 문제는 정수 오버플로우 때문에 벌어졌던 문제였다.
이동 플래그, 오버플로우 플래그를 사용해서 자동으로 예외를 발생하게 하여 구성한다.
항상 계산 전에 오버플로우 테스트를 시행한다.
https://www.boostcourse.org/cs112
모두를 위한 컴퓨터 과학 (CS50 2019)
부스트코스 무료 강의
www.boostcourse.org
'C > 부스트코스' 카테고리의 다른 글
[부스트코스]C 언어 배열 1 (0) | 2021.01.25 |
---|---|
[부스트코스]C 언어 퀴즈 7 (0) | 2021.01.24 |
[부스트코스]C 언어 퀴즈 5 (0) | 2021.01.24 |
[부스트코스]C 언어 퀴즈 4 (0) | 2021.01.24 |
[부스트코스]C 언어 퀴즈 3 (0) | 2021.01.23 |