https://cs50.harvard.edu/x/2023/weeks/1/
Week 1 C - CS50x 2023
Harvard University's introduction to the intellectual enterprises of computer science and the art of programming.
cs50.harvard.edu
CS50-01 C언어 강의에 관한 내용들
- parenthesis 괄호
- succint 간결한
- syntactic 구문론의
- increment 증가
- terminology 술어, 전문용어
- vogue 유행
- unwieldily 거추장스럽게
- implement 실행하다 충족시키다
- syntax 구문
- canonical 정식의, 전통적인, 권위있는
- consolidate 합병하다
- Preposition 전치사
- recourse to. 의지하다
- abbrebiation 약어
- asterisk 별표
- atrocious 극악한
- indent 들여쓰다
- terse 간결한
- intuituvely 직관적으로
- finite 한정된
- suffice it to say that -라고 말하면 충분하다
- inadvertently 무심코
- arithmetic 계산
pseudocode : 의사코드. https://sujinlee.me/pseudocode/ https://namu.wiki/w/%EC%9D%98%EC%82%AC%EC%BD%94%EB%93%9C#toc
CLI command line interface [맥, 리눅스 터미널 명령어]
-> https://choboit.tistory.com/88
ls : list, 해당 폴더 모든 파일 보여줌
mv : move or rename, 왼쪽이름을 오른쪽으로 바꿔줌 + 경로 입력시 이동
cd : change directory, cd .. 하나 위로 이동, cd test test디렉토리로 이동
cp : copy
mkdir : make a directory
rm : remove
rmdir : remove directory
C에서의 문제점들
intiger overflow : C에서 int가 표시될수 있는 숫자가 한정됨. int -> long (이 부분은 다른 언어에서는 필요에 따라 비트를 더 할당하며 해결됨)
truncation : 소수점표시 안됨 int, long -> float 으로 변경(많은 다른 언어에서도 둘을 구분하고 있음. )
type casting : (float) 결과값뿐만 아니라 계산에 들어가는 변수도 모두 이라고 내부에 이야기를 해줘야 소수점으로 계산함 (함수 내부에서 (float) 형식으로 변수 앞에 붙여서 타입을 바꿔줄수 있음.
floating-point imprecision : float 을 double로 하면 좀더 정확한 소수점자리가 표시되나, 무한정 소수점 아래 자리를 표시할수 없는 컴퓨터의 한계때문에 python에서도 아직 남아있음.