Размер видео: 1280 X 720853 X 480640 X 360
Показать панель управления
Автовоспроизведение
Автоповтор
#include int main() { std::string cars[][3] = {{"Mustang", "Escape", "F-150"}, {"Corvette", "Equinox", "Silverado"}, {"Challenger", "Durango", "Ram 1500"}}; int rows = sizeof(cars)/sizeof(cars[0]); int columns = sizeof(cars[0])/sizeof(cars[0][0]); for(int i = 0; i < rows; i++){ for(int j = 0; j < columns; j++){ std::cout
For school we have to learn javascript...we had to learn 2d arrays but I needed someone to explain it in cpp first so I would get it. TYY!!!
Giga Chad Busted, you are nice, you are catlike
Great stuff
how do we take input from user and make them come in a matrix form
look at the video he make name "How to fill an array with user input" then you gather them in a 2D array
#include using namespace std;int main() {string peoples[] [2] = {{ "Eva", "Yula", "Lisa"}, { "Artem" , "Kirill", " Ivan"}};int rows = sizeof(peoples) / sizeof(peoples[0]);int columns = sizeof(peoples[0]) / sizeof(peoples[0][0]);for ( int i = 0; i < rows; i++) { for (int j = 0; j < columns; j++) { cout
It should be peoples[ ][3] , not peoples[ ][2] since you have 3 elements in each row which means 3 columns
#includeint main(){ std::string students[][3] = {{"101","Amit","8.7"}, {"102","Anuj","8.4"}, {"103","Ankit","8.5"}, {"104","Aditya","7.9"}, {"105","Anu","8.9"}}; int rows = sizeof(students)/sizeof(students[0]); int cols = sizeof(students[0])/sizeof(students[0][0]); for (int i = 0; i < rows; i++) { for (int j = 0; j < cols; j++) { std::cout
good video man
🥰
#include using namespace std;int main(){ string foods[][3] = { { "beef","lamb","pork" },// pork is haram (: { "tomato","potato","carrot" }, { "aple","mango","melon" } }; int rows = 3; int coloms = 3; for (int i = 0; i < rows; i++) { for (int j = 0; j < coloms; j++) { cout
Keep it up my brother. did you make any significant progress in the last 9 months ?
#include
int main() {
std::string cars[][3] = {{"Mustang", "Escape", "F-150"},
{"Corvette", "Equinox", "Silverado"},
{"Challenger", "Durango", "Ram 1500"}};
int rows = sizeof(cars)/sizeof(cars[0]);
int columns = sizeof(cars[0])/sizeof(cars[0][0]);
for(int i = 0; i < rows; i++){
for(int j = 0; j < columns; j++){
std::cout
For school we have to learn javascript...we had to learn 2d arrays but I needed someone to explain it in cpp first so I would get it. TYY!!!
Giga Chad Busted, you are nice, you are catlike
Great stuff
how do we take input from user and make them come in a matrix form
look at the video he make name "How to fill an array with user input" then you gather them in a 2D array
#include
using namespace std;
int main() {
string peoples[] [2] = {{ "Eva", "Yula", "Lisa"},
{ "Artem" , "Kirill", " Ivan"}};
int rows = sizeof(peoples) / sizeof(peoples[0]);
int columns = sizeof(peoples[0]) / sizeof(peoples[0][0]);
for ( int i = 0; i < rows; i++) {
for (int j = 0; j < columns; j++) {
cout
It should be peoples[ ][3] , not peoples[ ][2] since you have 3 elements in each row which means 3 columns
#include
int main()
{
std::string students[][3] = {{"101","Amit","8.7"},
{"102","Anuj","8.4"},
{"103","Ankit","8.5"},
{"104","Aditya","7.9"},
{"105","Anu","8.9"}};
int rows = sizeof(students)/sizeof(students[0]);
int cols = sizeof(students[0])/sizeof(students[0][0]);
for (int i = 0; i < rows; i++)
{
for (int j = 0; j < cols; j++)
{
std::cout
good video man
🥰
#include
using namespace std;
int main()
{
string foods[][3] = { { "beef","lamb","pork" },// pork is haram (:
{ "tomato","potato","carrot" },
{ "aple","mango","melon" } };
int rows = 3;
int coloms = 3;
for (int i = 0; i < rows; i++)
{
for (int j = 0; j < coloms; j++)
{
cout
Keep it up my brother. did you make any significant progress in the last 9 months ?