C++ Environment Setup

Prateek Narang
Agenda
-
C++ Env Setup
-
Build + Run Code
-
Compiler Setup
-
Building & Running your Code


C++ Code Execution on our Machine 🧐






Machine Code

C++ Code Execution
C++
Source Code

C++
Source Code



Machine Executable Code

Text Editor
What you need?
C++ Compiler
Lets Setup


Sublime Text
Lightweight yet powerful text editor.
sublimetext.com/


Compiler
Compiler is a program that translates your programming language source code into a machine executable code.


#include<iostream>
using namespace std;
int main(){
// Your Code Goes Here
cout <<"Hello World!";
return 0;
}
Source Code


Compiler

Machine Code


LIVE Demo
Lets build and run our first C++ Code using
- Sublime Text as our Editor
- G++Compiler/clang C++ compiler for Mac
- Terminal / Command Line
Local IDE's




An integrated development environment (IDE) is software for building applications that combines common developer tools into a single graphical user interface (GUI).
IDE is a software that allows you
to create, edit, run, test & debug your code
from a single GUI.
Local IDE




Code::Blocks
Eclipse
XCode (Mac)
CLion etc.
Popular IDE's for C++


[Topics 03] Env Setup
By Prateek Narang
[Topics 03] Env Setup
- 10