Ask your own question, for FREE!
Computer Science 16 Online
OpenStudy (anonymous):

lets suppose that i have 3*3 grid as shown : 1 2 3 4 5 6 0 2 4

OpenStudy (anonymous):

ol accidentally pressed on post anyways , how to turn this grid from this form into 3*3 array of integers ?

OpenStudy (anonymous):

In what programming language are You working?

OpenStudy (anonymous):

You need to make a 3x3 matrix with the elements above. Depending in which programming language You work the syntax varies.

OpenStudy (anonymous):

C++

OpenStudy (anonymous):

Try this: int A[3][3] = { { 1, 2, 3 }, { 4, 5, 6 }, { 0, 2, 4 } };

OpenStudy (anonymous):

listen man , my problem is a little bigger than that , so ur method here is working but there is got to be a better way , i appreciate your help. here is the problem (dont want the whole solution , just the part i mentioned above .... :)

OpenStudy (anonymous):

what do You need exactly?

OpenStudy (anonymous):

thank you very much , problem solved after 3 hours of trying :D

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!