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:

38,294 already enrolled! After a course session ends, it will be archived.
Starts Sep 17
Estimated 8 weeks
6–8 hours per week
Self-paced
Progress at your own speed
Free
Optional upgrade available

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.

Coaching
If you are enrolled in the verified track (paid track) in any course that is a part of a MicroBachelors program, including this course, you are eligible for coaching at no additional cost. Please note that coaching is only available via SMS to U.S. phone lines.

Our coaches (real humans) are ready to help you with career exploration, navigating resources, staying motivated, and solving problems along the way to your goals.

Learn more about the value of coaching directly from one of our coaches, Erin.

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.