Please enable JavaScript to use CodeHS

C++

Learn how to program in C++, the powerful successor of C used in data science, machine learning, and large applications.


Types

C++ improves on some C types, like strings. Here's a look at some of the most common types in C++.

Pointers

Pointer manipulation is a unique aspect of both C and C++. It allows you to interact closely with memory in your program, finely controlling how data moves in your program.

Dynamic Memory

C++ adds the new and free keywords, which makes memory allocation simpler than in C.

Object Oriented Programming

One of the main features added to C++ from C is support for object oriented programming. Here's an example showing how classes can be used in C++.

Excited to start building your own C++ program?