Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 1.54 KB

File metadata and controls

14 lines (11 loc) · 1.54 KB

Intermediate C++ Examples

This section covers the following intermediate C++ topics:

  1. String Manipulations - Demonstrates std::string operations like declaration, access, concatenation, length, substrings, and finding.
  2. STL Vectors - Covers std::vector usage including initialization, adding/removing elements, access, size/capacity, and iteration.
  3. STL Maps - Shows std::map for key-value pairs, including insertion, access, checking existence, iteration, and removal.
  4. STL Sets - Explains std::set for unique sorted elements, covering insertion, existence checks, iteration, removal, and basic set operations.
  5. File I/O - Demonstrates file input/output using std::ifstream and std::ofstream for reading and writing text files.
  6. Error Handling (Exceptions, RAII) - Covers try-catch blocks, throwing/catching standard and custom exceptions, and RAII principles for resource management.
  7. Object-Oriented Programming (Deeper Dive) - Explores constructors, destructors, this pointer, access specifiers, encapsulation, inheritance, and polymorphism.
  8. Pointers and Dynamic Memory Management - Details new/delete, new[]/delete[], memory leaks, dangling pointers, and smart pointers (std::unique_ptr, std::shared_ptr, std::weak_ptr).

Refer to the main repository README for compilation instructions and overall project structure.