C언어
typedef int INT;
typedef int* PTR_INT;
struct Point {
int x, y;
}
typedef struct point Point;
typedef struct point {
int x, y;
} Point;
malloc - free
char * ptr_char;
ptr_char = (char*) malloc(50);
for(int i=0;i<50;i++){
ptr_char[i] = ‘a’;
}
free (ptr_char);
컴파일 전처리기 #####
#if 0 으로 하면 생략.. 0이 아니면 실행 #ifdef #ifdefind #ifndef #define #endif #else #elif
#if 0 0이면 무조건 무시 주석처럼 사용… #endif
#ifndef DEF_POINT #defind DEF_POINT 100 #endif
#define DEBUG 0 디버깅모드처럼 사용.. #if DEBUG #endif
추상자료형 ADT(Abstract Data Type)
객체지향 언어의 인터페이스를 설계하는 것처럼…하지만 코드로 정의하는건 아니고 개념적으로만… 기능을 미리 정의하는 것.
객체지향의 캡슐화 개념과 유사? 동일?
자료구조 보다가 좀 봤는데.
아이폰 개발도 스위프트로 대부분 넘어가서 objc마저 쓸일이 거의 없어져서..
파이썬 모듈 개발할때는 쓸까 모르겠다