for( auto &row : arr) {
for(auto col : row)
cout << col << " ";
cout<<endl;
}
//this way you can print your array row by row
for (int i = 0; i < row; i++){
for (int j = 0; j < column; j++){
cout << array[i][j];
}
}
//this way you can print your array column by column
for (int i = 0; i < column; i++){
for (int j = 0; j < row; j++){
cout << array[i][j];
}
}
for(int row=0; row<=3; row++){
for(int col=0; col<=2; col++){
Serial.print(buff[row][col]);
delay(200);
}
Serial.println();
}
Code Example |
---|
Cpp :: how to make Dijkstra in c++ |
Cpp :: convert integer to string in c++ |
Cpp :: pure virtual function in c++ |
Cpp :: Inner Section Sticky Scroll in elementor |
Cpp :: macros in c++ |
Cpp :: convert kelvin to Fahrenheit |
Cpp :: c++ random generator |
Cpp :: use of alphanumeric function c++, check if alphabet or digit from string |
Cpp :: how to print in new lines in C++ |
Cpp :: c++ header boilerplate |
Cpp :: cin exceptions c++ |
Cpp :: SUMOFPROD2 |
Cpp :: create matrix cpp |
Cpp :: c++ class template |
Cpp :: C++ String Compare Example |
Cpp :: enum c++ |
Cpp :: how to have a queue as a parameter in c++ |
Cpp :: do while c++ |
Cpp :: selection sort c++ |
Cpp :: trie code cpp |
Cpp :: pointers and arrays in c++ |
Cpp :: Initialize Vector Iterator |
Cpp :: adding variables c++ |
Cpp :: how to print items in c++ |
Cpp :: ascii allowed in c++ |
Cpp :: cpp malloc |
Cpp :: c++ define array with values |
Cpp :: first and last digit of a number in c++ |
Cpp :: c++ concatenate strings |
Cpp :: assign value to a pointer |