cstdio1 [C++] header : iostream, cstdio, cstdlib, [C++] header : iostream, cstdio, cstdlib, C++ 헤더(header) 파일 c++ 에서 헤더 파일은 확장자를 사용하지 않는다. 기존 c헤더를 대신하는 새로운 헤더 파일을 제공한다. ----> ----> * 기존 c헤더보다 새로운 헤더 형태 사용을 권장한다. #include //#include // 사용가능하지만 사용을 권장함. #include int main() { printf("%d\n", std::max(1,2)); } stdio.h 와 cstdio 의 차이 printf() 등의 표준 함수가 global namespace에 있다. printf() 등의 표준 함수가 std 이름 공간에 있다. 표준은 아니지만 대부분의 컴파일러는 global namespace에도 print.. 2021. 8. 4. 이전 1 다음