Skip to main content

Introduction to Programming in C++

Learn the fundamentals of programming in the C++ programming language, including iteration, decision branching, data types and expression.

...

There is one session available:

93,310 already enrolled!
Starts Nov 21
Ends Dec 31

Introduction to Programming in C++

Learn the fundamentals of programming in the C++ programming language, including iteration, decision branching, data types and expression.

8 weeks
6–8 hours per week
Self-paced
Progress at your own speed
Free
Optional upgrade available

There is one session available:

93,310 already enrolled! After a course session ends, it will be archivedOpens in a new tab.
Starts Nov 21
Ends Dec 31

About this course

Skip About this course

This is the 1st course in the intermediate, undergraduate-level offering that makes up the larger Programming and Data Structures MicroBachelors program. We recommend taking them in order, unless you have a background in these areas already and feel comfortable skipping ahead.

  1. Introduction to Programming in C++
  2. Advanced Programming in C++
  3. Introduction to Data Structures
  4. Advanced Data Structures

These topics build upon the learnings that are taught in the introductory-level Computer Science Fundamentals MicroBachelors program, offered by the same instructor.

This is a self-paced course that provides an introduction to the C++ programming language. Among the topics covered is the development of command-line programs that utilize different data types, expressions, decision branching, and iteration to solve problems. Students learn to program in C++ through the lectures and the labs. C++ programming material is presented over eight weeks of interactive lectures with weekly quizzes to assess your understanding of the material Students will experience hands-on practice writing C++ programs through ten lab challenges.

Students will experience the development cycle by compiling their C++ programs from human-readable source code to machine-readable object code. They will then link their objects to create an executable that can be run interactively.

At a glance

What you'll learn

Skip What you'll learn
  1. analyze C++ assignments and apply its components in program development
  2. apply basic C++ I/O operations with different data types
  3. design C++ expressions using arithmetic operations (including understanding their limitations, such as integer truncation, round-off error, division by zero, narrowing and widening conversions, casting, precedence, and standard math library functions)
  4. design C++ expressions using relational operators (including understanding floating point equality)
  5. design C++ expressions using logical operators (including short-circuit)
  6. design C++ selection statements (including nested selection)
  7. design C++ repetition statements (including count-controlled versus event-controlled, sentinel-controlled)

Wk 1 - Hello World

  • First C++ Program

Wk 2 - Data Types and Expressions

  • Type Casting
  • ASCII
  • Literals
  • The String Class
  • Boolean Expression

Wk 3 - Data Type Labs

Wk 4 - Branching Statements

  • Absolute Value
  • One-Way if Statements
  • Switch Statements

Wk 5 - Branching Labs

Wk 6 - Iterative Statements & Functions

  • Syntax
  • pigeonhole principle
  • function definition
  • domain, target, range
  • one-to-one and onto functions
  • composition of functions
  • inverse function

Wk 7 - Iteration Labs

Wk 8 - Final Exam

About the instructors

Interested in this course for your business or team?

Train your employees in the most in-demand topics, with edX For Business.