Multidimensional Arrays in C++ (2D arrays)

  Рет қаралды 588

Kenny Yip Coding

Kenny Yip Coding

Күн бұрын

2D arrays in c++ and multidimensional arrays in c++. In this video you will learn how to create 2D arrays and vectors and use them to represent tables, grids, and boards. A 2D array is also known as a matrix because it has a rectangle structure due to the fixed sizing of the arrays. Unlike a 2D array, a 2D vector does not necessarily have a rectangle structure since each vector can have a different number of elements.
If you need to review past C++ Topics:
Arrays: • Arrays in C++
Vectors: • C++ Vectors and Dynami...
C++ Playlist:
• C++ Programming Tutorial
Install C++ with VS Code:
• How to set up C++ in V...
Subscribe for more coding tutorials 😄!

Пікірлер: 3
@GoSoloPlay
@GoSoloPlay 3 ай бұрын
You're the beest! Thank for the video
@Nkobe_de_accomplish
@Nkobe_de_accomplish 3 ай бұрын
Why do you use size_t
@KennyYipCoding
@KennyYipCoding 3 ай бұрын
This was explained in my video on for loops. But basically that is the type that vector.size() returns. size_t (size_type) is an unsigned integer, meaning its 0 or postive. This let's you store more bits for numbers since you don't need to indicate negative numbers. You can't have a negative size so it wouldn't make sense to use an int, which can be negative.
Pointers to Pointers C++
14:45
Kenny Yip Coding
Рет қаралды 463
C++ Functions
13:36
Kenny Yip Coding
Рет қаралды 525
когда не обедаешь в школе // EVA mash
00:51
EVA mash
Рет қаралды 4,1 МЛН
She's very CREATIVE💡💦 #camping #survival #bushcraft #outdoors #lifehack
00:26
LeetCode was HARD until I Learned these 15 Patterns
13:00
Ashish Pratap Singh
Рет қаралды 407 М.
Array Methods in JavaScript | 17 Useful Methods
42:39
DoableDanny
Рет қаралды 57 М.
Array vs. ArrayList in Java Tutorial - What's The Difference?
17:36
Coding with John
Рет қаралды 532 М.
Tic Tac Toe Game in C++
20:20
Kenny Yip Coding
Рет қаралды 10 М.
Recursion in C++
10:50
Kenny Yip Coding
Рет қаралды 368
C++ Functions Pass by Value or Reference
11:24
Kenny Yip Coding
Рет қаралды 379
How to read Haskell code (in 7 minutes)
6:51
peppidesu
Рет қаралды 64 М.
C++ Dynamic Arrays vs Dynamically Allocated Arrays
10:05
Kenny Yip Coding
Рет қаралды 950
когда не обедаешь в школе // EVA mash
00:51
EVA mash
Рет қаралды 4,1 МЛН