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:
-
more » « less
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 loadLink 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 - Video Language:
- English
- Duration:
- 06:58
![]() |
Miami Online edited English subtitles for How to create a variable in C++ using an int ( aka integer ). Learn to code C++ in VS code for free | Jun 17, 2025, 4:37 PM |
![]() |
Miami Online edited English subtitles for How to create a variable in C++ using an int ( aka integer ). Learn to code C++ in VS code for free | Jun 17, 2025, 4:36 PM |
![]() |
Miami Online added a video: How to create a variable in C++ using an int ( aka integer ). Learn to code C++ in VS code for free | Jun 17, 2025, 4:36 PM |