autoreleasepool1 1. Objective-C / Hello world! Objective-C (옵젝씨라고도 부름)는 Swift 이전에 iOS, Mac OS 개발에 사용된 언어로이름에서 알 수 있듯이 객체지향의 4가지 근간인 (캡슐화, 데이터 숨기기, 상속, 다형성)을 지원한다. 가장 기본적인 Hello world를 찍어보고 관련 개념들을 알아보자. 자바처럼 좀 길다..??? : print("Hello world!") #import int main(int argc, const char * argv[]) { NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; NSLog (@"hello world"); [pool drain]; return 0;} #import헤더파일을 구현 파일에 포함시키는.. 2024. 5. 3. 이전 1 다음