1.

Solve : c++ programming?

Answer»

Please am facing challenges with two dimensional arrays, especially passing it as an argument to a function. I'll need your help guys.Quote

And a two-dimensional array looks like this: int[][] myArray = { {0,1,2,3}, {3,2,1,0}, {3,5,6,1}, {3,8,3,4} }; For our purposes, it is better to THINK of the two-dimensional array as a matrix. A matrix can be thought of as a grid of numbers, arranged in rows and columns, kind of like a bingo board.
https://processing.org/tutorials/2darray/
Which version of C++ ?
If Visual Studio Express - C++ there are LOTS oof free tutorials.
Fir a specific answer, look here:
http://stackoverflow.com/questions/9446707/correct-way-of-passing-2-dimensional-array-into-a-function
Quote
You are doing in wrong way. You can pass 2-d array with the help of pointer to an array, or simply pass an array or through Single pointer.

I worked on a program that will accept the HIGH and low temperatures of the month of the year, and the output the AVERAGE high and low temperatures and also the INDEX of the highest of the high temperatures and also the index of the lowest of the low temperatures. But it refused to run, code blocks instead alerted me of the wrong use of the "operator << std::". Please can you help me with ideas of what to do or to give me a working program to achieve that. Please your help will be appreciated.


Discussion

No Comment Found