C++ 2D arrays (#20) ⌨️

preview_player
Показать описание
C++ 2D arrays tutorial,
C++ 2 dimensional array,
C++ two dimensional array,
C++ multidimensional array,
Рекомендации по теме
Комментарии
Автор

#include <iostream>
#include <string>
#include <algorithm>
using namespace std;

int main()
{
char keyboard[4][10] = {
{ '1', '2', '3', '4', '5', '6', '7', '8', '9', '0' },
{ 'Q', 'W', 'E', 'R', 'T', 'Y', 'U', 'I', 'O', 'P' },
{ 'A', 'S', 'D', 'F', 'G', 'H', 'J', 'K', 'L', ';' },
{ 'Z', 'X', 'C', 'V', 'B', 'N', 'M', ', ', '.', '/' }
};

for (int row = 0; row < 4;row++) {
for (int column = 0; column < 10;column++) {
cout << keyboard[row][column] << " ";
}
cout << endl;
}

cout << endl;
return 0;
}

BroCodez
Автор

I love your videos BRO, you're teaching me better than my programming teachers

ferko
Автор

You explained it so clearly! Amazing stuff bro!

rif
Автор

Thank you for this awesome video! Greatly appreciated!

Hibbard
Автор

how do u put setprecision in array, say in a specific column

edran
Автор

Hey! I was wondering, I’m currently learning C#, and I kinda wanna learn C++ after to understand programming better, and to participate in competitive programming. What do you think I should do? (I currently know python and C#)

elliottandreasen