How to create a variable in C++ using an int ( aka integer ). Learn to code C++ in VS code for free

Title:
How to create a variable in C++ using an int ( aka integer ). Learn to code C++ in VS code for free
Description:

Visual Studio Code setup. VS code setup.
C++

Here is a link to the most current VS code: https://code.visualstudio.com/

In VS Code, this is how to make a directory:
- go to terminal
- while in the directory enter "cd" without the quotes - this stands for change directory
- enter mkdir - this makes a directory, however, you need to add a name for the directory. It should look something like ex: mkdir exampleNameHere
- then you should change your directory, so cd and change it to the name of the file you want to go to
- ex: cd exampleNameHere
- enter code . for new file to load

Link for C++ compiler using Ubuntu: https://ubuntu.com/

Command line ( after Ubuntu install ): g++ -Wall -Wextra -pedantic -std=c++17

then: ./a.out

* ( adds all files in current file ) ex: *.cpp or use file name ex: main.pp after "-std=c++17"

NOTES FROM VIDEO:

create a newline character that won't flush the buffer with "\n"

loops coming soon!

New terms to lookup from this video:

standard library
int
data types in C++
declaring a variable as an integer
comment block
comment
assigning a variable

more » « less
Video Language:
English
Duration:
06:58
http://www.youtube.com/watch?v=57VP0VBaivg
Format: Youtube
Primary
Original
Added Jun 17, 2025  by Miami Online
Format: Youtube
Primary
Original
This video is part of Amara Public.

Subtitles download

Completed subtitles (1)