Skip to content
VUBuddy
Dev-C++ in your browser

Online C++ Compiler

Write, compile and run C++ without installing Dev-C++ or a compiler. Press Ctrl+Enter to compile and run, type input in the terminal, and step through your code with the debugger.

  • Free
  • Nothing to install
  • No sign-up
  • Debugger
  • Terminal
  • IntelliSense
Run Ctrl+Enter

Run opens your code in the VUBuddy Playground in a new tab, with a terminal and a debugger.

Everything you use Dev-C++ for, with no setup

Compile and run with Ctrl+Enter

One key compiles and runs, like F11 in Dev-C++ (browsers keep F11 for full screen). Errors show the line number, so you can jump straight to the problem.

graphics.h and conio.h work

Most online compilers reject these older headers. Here you can draw shapes, build games, and use getch() and clrscr() in assignments that need them.

A real debugger

Set a breakpoint with Ctrl+B, start debugging with Ctrl+\, step through lines with Ctrl+' and watch your variables change.

Input in the terminal

cin, getline and scanf wait for you to type, just like on your own computer. No separate input box to fill in before you run.

Multi-file projects

Split your code into .h and .cpp files, read and write text files, and build class-based projects across several files.

IntelliSense

Suggestions, auto-complete and error underlines as you type, in a VS Code style editor.

How to run a C++ program online

  1. 1 Type or paste your code into main.cpp above.
  2. 2 Press Run or Ctrl+Enter. Your code is compiled with Clang 22 and runs in the terminal.
  3. 3 If the program asks for input, type it in the terminal and press Enter.
  4. 4 Need more files? Add headers and text files in the playground, or start from an example project.

Start from an example project

C Beginner

First Steps in C

Six small programs: grades, leap years, tables, averages, primes and a guessing game.

Open in Playground
C++ Beginner

Kite Flying

Your first graphics.h program: a kite drifts over Lahore rooftops at dusk.

Open in Playground
C++ Intermediate

Sorting Visualizer

Watch five sorting algorithms rearrange the same bars, one comparison at a time.

Open in Playground
C++ Intermediate

Payroll System

Four employee types paid through one abstract base class, across several files.

Open in Playground
C++ Advanced

3D Maze

A first-person maze drawn with raycasting in graphics.h.

Open in Playground
C++ Full app

Clinic Manager

Patients, doctors, appointments, billing and reports in a DOS-style interface.

Open in Playground

Online compiler or install Dev-C++?

Feature Installing Dev-C++ VUBuddy Playground
Setup Download an installer of about 50 MB, install and configure Opens in a few seconds
Works on Windows only Any computer with a modern browser: Windows, Mac, Linux, Chromebook
graphics.h Needs an extra library and linker settings Works out of the box
Debugger Yes Yes
Your files On one computer In the browser, or in a folder you open from your computer
Cost Free Free
For VU students

Made for CS201, CS301 and CS304

VU's C++ courses are taught with Dev-C++. The playground works the same way, with one key to compile and run, and supports the same headers, so assignment code runs here without changes. Open your course for handouts and past papers, then practise here.

Keyboard shortcuts

Action Shortcut
Compile and run Ctrl+Enter
Start debugging or continue Ctrl+\
Toggle breakpoint Ctrl+B
Step over Ctrl+'
Step into Ctrl+;
Step out Ctrl+Shift+;
Stop debugging Ctrl+Shift+\

On a Mac, use ⌘ in place of Ctrl. Run and debugging never use F-keys, because browsers keep them for themselves.

Questions about the online C++ compiler

Is there an online version of Dev-C++?

Dev-C++ is a Windows desktop program and has no official online version. VUBuddy Playground gives you the same way of working in a browser: a C++ editor, one key (Ctrl+Enter) to compile and run, and support for conio.h and graphics.h.

Can I use graphics.h in an online compiler?

Most online compilers can't run it, because graphics.h comes from old Borland compilers. It works here. Open the Kite Flying example to see a graphics.h program running.

How do I give input to my C++ program?

Press Run, then type in the terminal when your program waits for input and press Enter. cin, getline and scanf all work this way.

Does this online C++ compiler have a debugger?

Yes. You can set breakpoints, step through the code line by line and inspect variables while the program runs.

Which C++ version does it use?

It compiles with Clang 22, a current C and C++ compiler, so modern C++ works alongside the classic conio.h and graphics.h headers.

Is it free? Do I need an account?

Yes, completely free. There's no sign-up and no account: open the page and start coding.

Is my code saved?

Your projects are saved in your browser on this device, so they're still there when you come back. Clearing your browser data removes them, so download a ZIP of anything important, or open a folder from your computer and your changes save straight to it.

Can I use it on my phone?

Yes, it runs on phones and tablets, so you can check or fix code on the go. For writing longer programs, a laptop or desktop is more comfortable.

More free coding tools

Dev-C++, Apache NetBeans, Java and other names are trademarks of their owners. VUBuddy Playground is not affiliated with them.