Language&Framework&Etc/C50 6일차 - 기본제어문 동적 대응 → 지능적 (if문) F9 - Position Breakpoint ///////////// Condition Breakpoint & Data(변수) Breakpoint 등 있음F5 - Debug RunF10 - Step Over(한 줄씩) if문의 중첩 → 2분할 조건을 하려면 '비교연산'을 해야 함 -- -A - B - C - D 위 처럼 비교 보다 A B / C D - 이렇게 2번 비교하는게 더 나음 응용연산자 빠진 것Pointer → *(간접지정 연산자) &(주소 연산자) sizeof - CPU 사용 x가급적 자주 사용해라!! ※ wchar_t : ucs16 → 2bytes ucs32 → 4bytes sizeof(자료형) - compiler 연산ex) sizeof(1); = int = 4.. 2017. 5. 29. 5일차 응용연산자 빠진 것Pointer → *(간접지정 연산자) &(주소 연산자) sizeof - CPU 사용 x가급적 자주 사용해라!! ※ wchar_t : ucs16 → 2bytes ucs32 → 4bytes sizeof(자료형) - compiler 연산ex) sizeof(1); = int = 4byte sizeof('1'); = char = 1byte sizeof(nData+1.2); → TYPE PROMOTION → double [ int ][ int ][ int ] = 12byteint 이름[3] 요소*3 sizeof(aList); 1) ↓ int[5] = 20 2) 나쁜 코드 : 유지 보수가 힘들다. sizeof() 생활화 Ex) #int main(void){int aList[5]; - 우리가 다뤄야.. 2017. 5. 20. 4일차 여러 항(Item)들이 모여 구문(Statement)이 모여 Scope가 모여 Program 연산의 흐름 - ContextContext Switching - 흐름 변경 3+4+5 = 12 7 - 연산의 임시결과(변수에 저장) 12 (3) (1) (2)nResult = 3 + 4 - 5 '='(단순 대입) Copy & Overwrite int a a = 10;변수 상수l-value r-valueLeft RightLocation const int a = 10; - 상수화a = 5; 이형자료 간의 연산 : 표현 범위가 큰 형식대로 변한다. → 형승격(type promotion) 'A' + 1char + int = int 123.45 + 1 double int = double(실수) 4.1.3 page 114 .. 2017. 5. 20. 3일차 HCI(Human Computer Interface) : → CLI(Command Line Interface) - DOS, Linux → GUI(Graphic User Interface) → UX getchar() ---- 문자 한 글자||가져오라!(어디서? 어떻게?) 컴퓨터 남의 집을 털어오는 행위 : Debugger(Privileged Level Software) 집 집 집 Process 함수 : getchar(), putchar()개인. 개인. 개인 (Thread) . User (인간) ↓x | kernel과 연결 ㅁ(인터페이스): File - Write/Read 정보(규칙 : 프로토콜) --------------------------------------------------------------.. 2017. 5. 18. 이전 1 ··· 9 10 11 12 13 다음