Installation - C++ Tutorial For Beginners #2

NeuralNine · Beginner ·🛠️ AI Tools & Apps ·5y ago

Key Takeaways

This video tutorial covers the installation of a C++ compiler and a development environment for beginners, specifically using the G++ compiler and Visual Studio Code.

Full Transcript

[Music] what is going on guys welcome to the second c plus plus tutorial series on neural nine in today's video we're going to set up our environment we're going to install a compiler and an editor uh for the programming in c plus so let's get right into it all right so let's start by getting a compiler for our system and for this tutorial series we're going to use the g plus plus compiler of course if you have a favorite compiler that you want to use feel free to do that you don't have to use this one as long as you know how to get it running it doesn't matter which compiler you use um here we're going to install the g plus plus compiler and for windows we need additional software to do that i think on linux and on mac it's either pre-installed or you can easily install it by using the uh default package managers you just type sudo apt-get install g plus plus on ubuntu for example or yum install or i don't know how it's done on mac but just use the package manager you can then install the g plus plus compiler or it's even pre-installed by default so on windows however we need to get the minimalist gnu for windows in order to run the new compiler and for this we navigate to mingw.org and click on the downloads tab on the top right here on this page then we see the mingw get setup exe file we click on download and then it's going to be downloaded for us i'm not going to run this here because i've already installed this ming gw platform but you can save the file you run it you install it the installation process is pretty self-explanatory and once you have that what you do is you open up your start menu and you type min gw then you're going to see the mingw installation manager and here we have a bunch of packages that we can choose from that we can install here and the one that we're interested in is the gnu c plus plus compiler the binary files so this one the min gw32 gcc g plus plus bin the binary um you can see in the description it says new c plus plus compiler you click on it in my case it's already installed but you click on it uh you mark it for installation so i'm going to click on something else here you just say mark for installation but on this one here then you click on installation and on apply changes and then you're going to install the compiler once you have done that however you can probably not use it directly but you need to add it to the path variable so you go to your start menu again and you type environment variables or just environment then you get to this beautiful window here and you click on environment variables down here and then what we care about are the system variables and here we scroll down to the path to the path variable here and we click on edit so we see a bunch of entries here and what you want to do is you want to add a new entry called min gw bin so you want to go to new you want to type c backslash sorry c backslash min gw backslash bin so this is the path that you want to add i'm not going to do this right now because i already have it as you can see here and once you have done that correctly uh make sure that this is the actual installation path where you installed mingw uh but it usually is once you have done that you can go ahead and run a command line um and when you have done that you can check if this worked by just typing g plus plus if it says i don't know what that command is for example if i type neural nine here it's going to say it's not recognized as an internal or external command if that is the case something went wrong but if you see something like g plus plus fatal error no input files you know that the compiler is installed so this is what you want to have so what you're also going to need is some sort of development environment an ide or an editor where you can put your code into because i would not recommend just using the basic windows notepad and for this you can go with visual studio code it's the one that i'm going to use for this tutorial series it's well designed well structured it has plugins it's open source free platform independent what you want more it's from microsoft but it still runs on windows on linux and on mac um it's one i'm going to use i essentially use it for everything except for python and for for java because there i use pycharm and intellij so we're going to use this one for this tutorial series i recommend it alternatively you can also go with sublime text however sublime text costs money but it's a very popular ide amongst programmers so if you want to spend some money you can also go with sublime text or you can go with adam which is also in an open source and free editor that is hackable customizable uh if you want to look into that if you want to have a big ide however not just a uh an editor you can go with visual studio itself with the full visual studio software but then you're probably more likely to be focused on windows because visual studio only works on windows it's focused on windows i would not recommend it unless you're working on some big windows focused projects i'm not going to use it here uh it's it's essentially when you're doing real desktop development with c plus plus four windows so if you're going to do that go with windows uh visual studio code uh not code sorry with the visual studio software um alternatively you can also have code blocks which is a full born ide for c c plus and fortran i personally am not very i'm not a big fan of the design however if you don't mind it you can use it on linux and on windows i think it's probably also available for mac but that's also a good idea that you can use and if you want to spend some money and probably want to have the best idea i've never used it but i know the jetbrains products are always awesome so c-line is essentially the equivalent to pycharm and intellij for c and c plus plus uh as i said i've never used it because it costs money and intellij and pycharm have a community edition that's free c lion does not uh but since pycharm and intellij are great ides i think that c line is probably also going to be a great ide so if you want to spend some money and you want to do c c plus coding professionally you can probably also look into c line but as i said we're going to use visual studio code for this tutorial so that's it for today's video you should now have a compiler on your system and also an editor one piece of software that allows you to write code and another piece of software that allows you to take that code and compile it into an executable file if you have that doesn't matter what it is doesn't matter which editor which ide which compiler as long as you can write and compile c plus code you're fine and in the next video we're going to learn how to do that we're going to learn how to write code we're going to learn how to compile c plus files into executable files and we're going to start to get into the programming so if you enjoyed this video if you like it let me know by hitting the like button and leaving a comment in the comment section down below also make sure you subscribe to this channel or see more future videos for free and other than that thank you very much for watching see you in the next video and bye [Music] foreign

Original Description

In this video we learn how to install a compiler and a development environment for C++ programming. ◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾ 📚 Programming Books & Merch 📚 💻 The Algorithm Bible Book: https://www.neuralnine.com/books/ 🐍 The Python Bible Book: https://www.neuralnine.com/books/ 👕 Programming Merch: https://www.neuralnine.com/shop 🌐 Social Media & Contact 🌐 📱 Website: https://www.neuralnine.com/ 📷 Instagram: https://www.instagram.com/neuralnine 🐦 Twitter: https://twitter.com/neuralnine 🤵 LinkedIn: https://www.linkedin.com/company/neuralnine/ 📁 GitHub: https://github.com/NeuralNine 🎵 Outro Music From: https://www.bensound.com/
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from NeuralNine · NeuralNine · 0 of 60

← Previous Next →
1 Visualizing Stock Data With Candlestick Charts in Python
Visualizing Stock Data With Candlestick Charts in Python
NeuralNine
2 Python Beginner Tutorial #1 - Installation and First Program
Python Beginner Tutorial #1 - Installation and First Program
NeuralNine
3 Python Beginner Tutorial #2 - Variables and Data Types
Python Beginner Tutorial #2 - Variables and Data Types
NeuralNine
4 Python Beginner Tutorial #3 - Operators and User Input
Python Beginner Tutorial #3 - Operators and User Input
NeuralNine
5 Python Beginner Tutorial #4 - If Statements and Conditions
Python Beginner Tutorial #4 - If Statements and Conditions
NeuralNine
6 Python Beginner Tutorial #5 - Loops
Python Beginner Tutorial #5 - Loops
NeuralNine
7 Python Beginner Tutorial #6 - Sequences and Collections
Python Beginner Tutorial #6 - Sequences and Collections
NeuralNine
8 Python Beginner Tutorial #7 - Functions
Python Beginner Tutorial #7 - Functions
NeuralNine
9 Python Beginner Tutorial #8 - Exception Handling
Python Beginner Tutorial #8 - Exception Handling
NeuralNine
10 Python Beginner Tutorial #9 - File Operations
Python Beginner Tutorial #9 - File Operations
NeuralNine
11 Python Beginner Tutorial #10 - String Functions
Python Beginner Tutorial #10 - String Functions
NeuralNine
12 Python Intermediate Tutorial #1 - Classes and Objects
Python Intermediate Tutorial #1 - Classes and Objects
NeuralNine
13 Python Intermediate Tutorial #2 - Inheritance
Python Intermediate Tutorial #2 - Inheritance
NeuralNine
14 Python Intermediate Tutorial #3 - Multithreading
Python Intermediate Tutorial #3 - Multithreading
NeuralNine
15 Python Intermediate Tutorial #4 - Synchronizing Threads
Python Intermediate Tutorial #4 - Synchronizing Threads
NeuralNine
16 Python Intermediate Tutorial #5 - Events and Daemon Threads
Python Intermediate Tutorial #5 - Events and Daemon Threads
NeuralNine
17 Python Intermediate Tutorial #6 - Queues
Python Intermediate Tutorial #6 - Queues
NeuralNine
18 Python Intermediate Tutorial #7 - Sockets and Network Programming
Python Intermediate Tutorial #7 - Sockets and Network Programming
NeuralNine
19 Python Intermediate Tutorial #8 - Database Programming
Python Intermediate Tutorial #8 - Database Programming
NeuralNine
20 Python Intermediate Tutorial #9 - Recursion
Python Intermediate Tutorial #9 - Recursion
NeuralNine
21 Python Intermediate Tutorial #10 - XML Processing
Python Intermediate Tutorial #10 - XML Processing
NeuralNine
22 Python Intermediate Tutorial #11 - Logging
Python Intermediate Tutorial #11 - Logging
NeuralNine
23 Python Data Science Tutorial #1 - Anaconda and PyCharm Setup
Python Data Science Tutorial #1 - Anaconda and PyCharm Setup
NeuralNine
24 Python Data Science Tutorial #2 - NumPy Arrays
Python Data Science Tutorial #2 - NumPy Arrays
NeuralNine
25 Python Data Science Tutorial #3 - Numpy Functions
Python Data Science Tutorial #3 - Numpy Functions
NeuralNine
26 Python Data Science Tutorial #4 - Plotting Functions With Matplotlib
Python Data Science Tutorial #4 - Plotting Functions With Matplotlib
NeuralNine
27 Python Data Science Tutorial #5 - Subplots and Multiple Windows
Python Data Science Tutorial #5 - Subplots and Multiple Windows
NeuralNine
28 Python Data Science Tutorial #6 - Matplotlib Styling
Python Data Science Tutorial #6 - Matplotlib Styling
NeuralNine
29 Python Data Science Tutorial #7 - Bar Charts with Matplotlib
Python Data Science Tutorial #7 - Bar Charts with Matplotlib
NeuralNine
30 Python Data Science Tutorial #8 - Pie Charts with Matplotlib
Python Data Science Tutorial #8 - Pie Charts with Matplotlib
NeuralNine
31 Python Data Science Tutorial #9 - Plotting Histograms with Matplotlib
Python Data Science Tutorial #9 - Plotting Histograms with Matplotlib
NeuralNine
32 Python Data Science Tutorial #10 - Scatter Plots with Matplotlib
Python Data Science Tutorial #10 - Scatter Plots with Matplotlib
NeuralNine
33 Python Data Science Tutorial #11 - 3D Plotting with Matplotlib
Python Data Science Tutorial #11 - 3D Plotting with Matplotlib
NeuralNine
34 Python Data Science Tutorial #12 - Pandas Series
Python Data Science Tutorial #12 - Pandas Series
NeuralNine
35 Python Data Science Tutorial #13 - Pandas Data Frames
Python Data Science Tutorial #13 - Pandas Data Frames
NeuralNine
36 Python Data Science Tutorial #14 - Pandas Statistics
Python Data Science Tutorial #14 - Pandas Statistics
NeuralNine
37 Python Data Science Tutorial #15 - Pandas Sorting and Functions
Python Data Science Tutorial #15 - Pandas Sorting and Functions
NeuralNine
38 Python Data Science Tutorial #16 - Pandas Merging Data Frames
Python Data Science Tutorial #16 - Pandas Merging Data Frames
NeuralNine
39 Python Data Science Tutorial #17 - Pandas Queries
Python Data Science Tutorial #17 - Pandas Queries
NeuralNine
40 Python Machine Learning Tutorial #1 - What is Machine Learning?
Python Machine Learning Tutorial #1 - What is Machine Learning?
NeuralNine
41 Python Machine Learning Tutorial #2 - Linear Regression
Python Machine Learning Tutorial #2 - Linear Regression
NeuralNine
42 Python Machine Learning Tutorial #3 - K-Nearest Neighbors Classification
Python Machine Learning Tutorial #3 - K-Nearest Neighbors Classification
NeuralNine
43 Python Machine Learning #4 - Support Vector Machines
Python Machine Learning #4 - Support Vector Machines
NeuralNine
44 Python Machine Learning Tutorial #5 - Decision Trees and Random Forest Classification
Python Machine Learning Tutorial #5 - Decision Trees and Random Forest Classification
NeuralNine
45 Python Machine Learning Tutorial #6 - K-Means Clustering
Python Machine Learning Tutorial #6 - K-Means Clustering
NeuralNine
46 Python Machine Learning Tutorial #7 - Neural Networks
Python Machine Learning Tutorial #7 - Neural Networks
NeuralNine
47 Python Machine Learning Tutorial #8 - Handwritten Digit Recognition with Tensorflow
Python Machine Learning Tutorial #8 - Handwritten Digit Recognition with Tensorflow
NeuralNine
48 Generating Poetic Texts with Recurrent Neural Networks in Python
Generating Poetic Texts with Recurrent Neural Networks in Python
NeuralNine
49 Stock Portfolio Visualization with Matplotlib in Python
Stock Portfolio Visualization with Matplotlib in Python
NeuralNine
50 Analyzing Coronavirus with Python (COVID-19)
Analyzing Coronavirus with Python (COVID-19)
NeuralNine
51 Making Text Images Readable Again with Python and OpenCV
Making Text Images Readable Again with Python and OpenCV
NeuralNine
52 Neural Networks Simply Explained (Theory)
Neural Networks Simply Explained (Theory)
NeuralNine
53 Motion Filtering with OpenCV in Python
Motion Filtering with OpenCV in Python
NeuralNine
54 Top 5 Programming Languages To Learn in 2020
Top 5 Programming Languages To Learn in 2020
NeuralNine
55 Simple TCP Chat Room in Python
Simple TCP Chat Room in Python
NeuralNine
56 Image Classification with Neural Networks in Python
Image Classification with Neural Networks in Python
NeuralNine
57 Edge Detection with OpenCV in Python
Edge Detection with OpenCV in Python
NeuralNine
58 S&P 500 Web Scraping with Python
S&P 500 Web Scraping with Python
NeuralNine
59 Simple Sentiment Text Analysis in Python
Simple Sentiment Text Analysis in Python
NeuralNine
60 Introduction - Algorithms & Data Structures #1
Introduction - Algorithms & Data Structures #1
NeuralNine

This video teaches beginners how to install a C++ compiler and set up a development environment using G++ and Visual Studio Code, preparing them for C++ programming.

Key Takeaways
  1. Download and install MinGW
  2. Install the G++ compiler
  3. Add the compiler to the system path
  4. Install Visual Studio Code or another IDE
  5. Verify the compiler installation
💡 Installing a compiler and setting up a development environment are essential steps for beginners to start programming in C++.

Related Reads

📰
The no-code AI business stack that earns $5k/month on autopilot
Learn how to build a no-code AI business stack that earns $5k/month on autopilot, leveraging interconnected AI tools for content creation, customer payment processing, and more
Dev.to AI
📰
GitHub’s April Changelog Exposes the Private-Repo Cost of Instant Reviews
GitHub's April changelog reveals that private-repo reviews now consume AI credits and Actions minutes, affecting automatic review rules
Medium · AI
📰
AI Did Not Kill Freelancing. It Changed What Clients Actually Pay For
Discover how AI has changed the freelancing landscape and what clients now pay for, to stay ahead in the industry
Dev.to · Alcora
📰
25 Best AI Tools in 2026 to Boost Productivity, Create Content & Make Money Online
Discover 25 AI tools to boost productivity, create content, and make money online in 2026
Medium · Startup
Up next
How I Use AI to Write Facebook Ad Scripts That Actually Scale
Nick Theriot
Watch →