Programming Languages

Programming Languages

Share

JDoodle - Online Compiler, Editor for Java, C/C++, etc 29/10/2025

💻 C++ Tutorial — Topic 2: Setting Up C++ (Download & Installation Guide)

You’ve learned what programming is 💡
Now let’s make your computer ready to run your first C++ program! ⚙️

🧰 Step 1: Choose Your Setup Style

You can run C++ in two easy ways:

1️⃣ Online (No Installation Needed)
2️⃣ Offline (Install an IDE or Compiler)

Let’s see both 👇

🌐 Option 1: Use an Online Compiler (Recommended for Beginners)

Perfect for learning — no setup, no downloads!
Here are a few trusted sites:

🔹 https://www.programiz.com/cpp/

🔹 https://www.onlinegdb.com/

🔹 https://www.jdoodle.com/c-online-compiler

How to Use:
1️⃣ Open the site.
2️⃣ Paste your code in the editor.
3️⃣ Click Run ▶️ and see the output below!

💡 Great for mobile users or anyone learning the basics.

💻 Option 2: Install a C++ IDE (Offline Setup)

If you want to code like a pro — install an IDE (Integrated Development Environment).

Choose one based on your operating system:

🪟 Windows Users

✅ Option 1: Code::Blocks (Beginner Friendly)

Visit: https://www.codeblocks.org/downloads/

Download “codeblocks-20.03mingw-setup.exe” (includes compiler)

Install → Open → Create a new file → Write your code → Press F9 to run

✅ Option 2: Dev-C++

Download from: https://sourceforge.net/projects/orwelldevcpp/

Simple and lightweight!

🍎 Mac Users

Use Xcode (from the App Store):

Search for “Xcode” → Install

Open Terminal → Run:

g++ hello.cpp -o hello/hello

You’re good to go! 🎉

🐧 Linux Users

C++ is often preinstalled!
To check, open your Terminal and type:
g++ --version

If not installed, run:

sudo apt install g++

Then compile your code:

g++ hello.cpp -o hello/hello

🧠 Tip:

Always save your file with .cpp extension, e.g.,
📄 hello.cpp

That tells the computer it’s a C++ file.

🚀 You’re Ready!

Now your system can compile and run C++ programs.
Let’s move on to writing and understanding your first lines of code in the next topic!

JDoodle - Online Compiler, Editor for Java, C/C++, etc JDoodle is an Online Compiler, Editor, IDE for Java, C, C++, PHP, Perl, Python, Ruby and many more. You can run your programs on the fly online, and you can save and share them with others. Quick and Easy way to compile and run programs online.

Want your school to be the top-listed School/college in Nowshera?
Click here to claim your Sponsored Listing.

Category

Telephone

Website

Address


Nowshera