C++ in the browser

Teach C++ in the browser with a real compiler

Your students write and compile C++ with clang. They get live keyboard input, real compiler errors, and the full standard library.

Nothing to install and no lab images to maintain. It runs on any device, Chromebooks included. Use it from a first program through a data structures course.

The clang compiler, right in the browser
0
Installs or lab images, on any device
Live std::cin and real compiler errors
4
C++ textbooks with runnable examples

Watch C++ compile and run

A program compiles, waits at std::cin for input, hits a compiler error, and passes its unit tests once it’s fixed.

This demo is scripted. Nothing compiles on this page.

Real C++, ready for your class

Your students use the clang compiler, and you have no lab images or grading scripts to maintain.

The same C++ for every student

Code runs the same on a Chromebook as on a laptop. Students start coding on day one.

Console programs just work

std::cin and std::getline wait for the student to type, like a desktop terminal.

Compiler errors, highlighted

Students see clang’s exact file:line:col errors, highlighted on the line that caused them.

Instant practice feedback

Students check their work against unit tests before it reaches your gradebook. The full standard library, exceptions, and multi-file projects all work.

C++ textbooks

C++ textbooks with runnable examples

Complete C++ courses from first principles to data structures, with examples students can edit and run.

Run the book’s own examples

Alps comes with full interactive C++ books. Students change an example, hit Run, and see what happens.

  • ✓ Every code listing is an editor students can run
  • ✓ Compiled with clang, so code behaves as it would on a desktop
  • ✓ Works with C++ in any imported book, including yours

From a first program to data structures

Students go from Hello, World to pointers, classes, and the STL in one environment. There’s nothing new to install along the way.

Fundamentals

Variables, loops, functions

Pointers & memory

References, pointers, RAII

Classes & the STL

Objects, templates, containers

Data structures

Lists, trees, graphs, maps

For more practice, Logic Gym adds thousands of tested, auto-graded C++ problems, from Beginner to Competitive. We can also bring your own C++ textbook onto Alps as an interactive course. We work with publishers and support licensed editions.

C++ gets the same adaptive practice as every Alps language. Adaptive Coding breaks hard problems into smaller steps. Adaptive Parsons gives students code blocks to put in order. BloomIQ turns every run into learning analytics.

How we compare

More than an online compiler

Feature Alps Other browser tools
Real clang compiler ~
Built into curricula, tutoring, and grading
Nothing to install, works on Chromebooks ~
Interactive std::cin that waits for input ~
Real clang errors, highlighted in the code ~
Unit-test feedback in the browser ~
Full standard library and C++ exceptions ~
Multi-file projects (.h and .cpp)

Teach C++ without the setup

Clang, live input, and complete C++ textbooks on any device, with nothing to install.