Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Setting up your C++

Compiler
For Windows users
To practice writing programs in windows, we would suggest you to download
CodeBlocks IDE​.

To learn how to download codeblocks, watch this video ( Upto 4:30 minute
):
https://www.youtube.com/watch?v=aS5_jrIbKmA

To learn to create, compile and run C++ files :


1. Open Codeblocks
2. File ⇒ New ⇒ Empty File.
3. Enter your code.
4. Save the file as "Hello.cpp" (or any other name) in your some directory.
5. Select "Build" menu ⇒ Build (or press Ctrl-F9).
6. Run: Select "Build" menu ⇒ Run (or press Ctrl-F10).

For Ubuntu (Linux) users


To practice writing programs in Linux, we would suggest you to download ​Geany
IDE​.
To learn how to download and setup geany, watch this video:
https://www.youtube.com/watch?v=ePZEkbbf3fc

To learn to create, compile and run C++ files -


1. Open Geany
2. File ⇒ New ⇒ Empty File.
3. Enter your code.
4. Save the file as "Hello.cpp" (or any other name) in your some directory.
5. Select "Build" menu ⇒ Build (or press Ctrl-F9).
6. Run: Select "Build" menu ⇒ Execute (or press Ctrl-F5).
For those facing any problems in setting up
compiler :

1. In case, you had already installed codeblocks and are not able to run any
program in it, try uninstalling it and re-installing it, as per the instructions given
above.

2. If still you face some problem, you can also use any online C++ compilers like
:
(i) ​https://csacademy.com/workspace/
(ii) ​https://ideone.com/

3. If you don't have access to laptop or PC and are not comfortable with the
above online compilers, only and only in that case, you should go for this mobile
app (CppDroid) for C++ compiler :
https://play.google.com/store/apps/details?id=name.antonsmirnov.android.cppdr
oid

You might also like