I want to generate m*n matrix.m and n will be the user input. The elements of the matrix should be generated randomly.
to genarate random matrix where the elements of the matrix should be generated random
Collapse
X
-
You just need a dynamically allocated array.
Read this: http://bytes.com/topic/c/insights/77...rrays-revealed
and look at the last example.
Comment