강좌 목록으로 돌아가기
AI037 학부

C++ 프라머, 제5판

C++11 표준을 완전히 재작성한 포괄적이고 권위 있는 C++ 가이드입니다. 이 과정에서는 기본 언어 요소부터 복잡한 라이브러리 기능, 고급 클래스 작성 도구까지 모든 것을 다룹니다.

5.0
57.0h
601 학생들
19 lessons
0 좋아요
인공지능
수강 시작하기

강좌 개요

📚 콘텐츠 요약

C++11 표준에 맞춰 완전히 재작성된 포괄적이고 권위 있는 C++ 가이드. 이 과정은 기본 언어 요소에서 복잡한 라이브러리 기능과 고급 클래스 작성 도구까지 모든 내용을 다룹니다.

현대적인 현업 표준의 최고 수준 가이드 — 모던 C++11 프로그래밍 마스터를 위한.

저자: 스탠리 B. 리프먼, 조세 라조, 바바라 E. 무

감사의 말씀: 데이브 애브라함스, 앤디 코니그, 스테판 T. 라바베이, 제이슨 메릴, 존 스피서, 허브 서터, 브르네 스트로스트루프, 알렉스 스텐포프, 그리고 표준화 위원회 구성원들.

🎯 학습 목표

  1. main 함수를 정의하고 구현하며 운영체제와의 상호작용을 이해한다.
  2. 명령줄 컴파일을 실행하고 기본 입출력 스트림(cin, cout)을 관리한다.
  3. 반복적 논리 문제(예: 발생 횟수 세기) 해결을 위해 제어 흐름 문장을 적용한다.
  4. 입력 데이터의 연속적인 발생 횟수를 세고 처리하기 위한 로직 구조를 구현한다.
  5. 제어문 내에서 할당(=)과 동등성(==) 연산자 간의 차이를 구분한다.
  6. 클래스 객체(Sales_item)를 사용하고 점 연산자로 멤버 함수에 접근하며 사용자 정의 헤더 파일을 포함한다.
  7. 다양한 원시 타입을 구분하고 타입 변환 및 부호 없는 산술 연산의 오버플로우 결과를 예측한다.
  8. 리스트 초기화, nullptr, constexpr, 타입 추론 지정자 등 C++11 기능을 구현한다.
  9. 변수 선언과 정의의 차이를 구분하고 범위 규칙을 적용하여 식별자 가시성을 관리한다.
  10. 참조와 포인터의 차이를 구분하고 void*를 사용해 일반적인 메모리 처리를 수행한다.

수업

Lesson

This lesson introduces the fundamentals of C++ programming, focusing on the structure of the main function as the mandatory entry point for all applications. Students will learn how to configure their development environment, utilize standard input/output streams, and understand the importance of return values for program execution.

This lesson explores C++ stream-based logic, focusing on how to use input streams as boolean conditions to process data of indeterminate length. Students will learn to implement state-tracking algorithms and understand how user-defined classes can be integrated into stream operations for efficient data handling.

This lesson explores C++ primitive arithmetic types, including integral, floating-point, and void types, while explaining how they map to hardware memory. Students will learn to distinguish between signed and unsigned integers, understand memory representation, and select appropriate data types for specific programming tasks.

This lesson explores the fundamental differences between pointers and references in C++, focusing on how pointers store memory addresses while references act as permanent aliases for existing objects. Students will learn to implement complex data structures, apply const correctness, and utilize type qualifiers like volatile and restrict to ensure memory safety and performance.

This lesson explores efficient C++ namespace management by using declarations to streamline code and avoid repetitive prefixes. It also covers the importance of header guards in separate compilation to prevent redefinition errors and maintain clean, modular project structures.

This lesson explores the use of iterators as a universal mechanism for navigating diverse C++ containers, emphasizing the importance of the begin and end sentinel pattern for generic programming. Students will learn to perform standard iterator operations, understand the risks of iterator invalidation, and recognize why using inequality operators ensures code portability across different data structures.

This lesson explores the fundamental distinction between lvalues, which represent objects with persistent memory identities, and rvalues, which are transient values or literals. Students will learn how to identify these expressions, understand the rules for lvalue-to-rvalue conversions, and apply these concepts to operator precedence and memory management.

This lesson explores the fundamental structure of C++ statements, focusing on the use of expression statements, null statements, and compound blocks. Students will learn how to properly manage scope and avoid common logic errors, such as extraneous semicolons, while applying these concepts to control flow and algorithmic tasks.

This lesson explores the principles of function design, focusing on the distinction between lexical scope and execution lifetime for automatic objects. Students will learn to manage memory efficiently by understanding how parameters, local variables, and static variables behave within a program's stack.

This lesson explores the distinction between automatic and static object lifetimes in C++, explaining how they differ in memory allocation and persistence. You will learn how to manage local state effectively by choosing between stack-based automatic variables and function-scoped static objects.

This lesson explores the transition from structs to Abstract Data Types (ADTs) by implementing class encapsulation, access modifiers, and interface/implementation separation. Students will learn to design robust classes using constructors, nonmember interface functions, and friendship to protect internal state while maintaining functional flexibility.

This lesson explores the transition from passive data structures to Abstract Data Types (ADTs) in C++, emphasizing the role of encapsulation in maintaining internal state. Students will learn how to use classes to separate interfaces from implementation details while managing data integrity through access control and static members.

This lesson explores the C++ stream hierarchy, emphasizing that IO objects must be passed by non-const reference due to their non-copyable nature. It also covers the selection of sequential containers, highlighting the performance trade-offs between structures like vectors and lists based on access patterns and insertion requirements.

This lesson explores the relationship between C++ container size and capacity, emphasizing how memory reallocation affects iterator validity and performance. Students will learn to distinguish between container-specific operations and generic algorithms, while mastering the use of iterators to safely manipulate container contents.

This lesson explores the use of associative containers like std::map and std::set to achieve efficient logarithmic-time lookups, while contrasting ordered and unordered variants. It also covers implementing automated memory management using smart pointers (std::unique_ptr, std::shared_ptr, and std::weak_ptr) to handle shared resources safely.

This lesson explores the mechanics of C++ copy control, focusing on the distinction between initialization and assignment, the risks of synthesized copy operations, and the implementation of custom copy constructors and assignment operators. Students will learn to apply the Rule of Five to ensure robust resource management and prevent common memory errors like shallow copies and double-frees.

This lesson explores the philosophy of operator overloading in C++, focusing on how to implement unary and binary operators to make user-defined types behave like first-class citizens. Students will also learn to construct class hierarchies using inheritance, access control, and virtual functions to enable polymorphic behavior.

This lesson introduces generic programming in C++ by using templates as blueprints to create type-independent functions and classes. You will learn how the compiler performs instantiation to generate concrete code, the importance of minimizing type requirements for reusability, and why template definitions are typically placed in header files.

This lesson explores the use of `std::tuple` as a heterogeneous container for grouping multiple data types in large-scale C++ systems. Students will learn how to initialize, access, and compare tuples while evaluating when to use them versus custom structs for improved code efficiency and readability.