Module 1 of 4

Introduction to C++

10 lessons  ·  Setup, fundamentals, variables, I/O

1

Why C++?

Topics covered

  • Why learn C++ for engineering
  • Overview of compiled vs interpreted languages
  • C++ in industry and engineering applications
3

Create a New Project and C++ File in Visual Studio

Topics covered

  • Creating a new project in Visual Studio 2019
  • Adding and managing .cpp source files
  • Overview of the IDE layout
4

Start to Code with C++

Topics covered

  • Writing and running your first C++ program
  • The main() function
  • Compiling and executing code
  • Common beginner errors
5

C++ Fundamentals

Topics covered

  • Syntax rules and code structure
  • Statements, expressions and semicolons
  • Comments (single-line and multi-line)
  • Header files and #include directives
6

Program Structure and Programming Process

Topics covered

  • Stages of program execution: edit, compile, link, run
  • Structured programming concepts
  • Problem-solving and algorithm design
7

Variables & Data Types

Topics covered

  • Declaring and initialising variables
  • Fundamental data types: int, float, double, char, bool
  • Type sizes and ranges
  • Constants and the const keyword
8

Basic Input and Output (I/O)

Topics covered

  • Using cout for output
  • Using cin for input
  • The iostream library
  • Escape sequences (\n, \t, etc.)
9

Stream Manipulators

Topics covered

  • Formatting output with setw, setprecision, fixed
  • Using the iomanip library
  • Left and right alignment
  • Controlling decimal places in output
10

File Input and Output (I/O)

Topics covered

  • Reading from files using ifstream
  • Writing to files using ofstream
  • Opening, reading, writing and closing files
  • Error handling for file operations