Originally posted by sicarie
yea it does make a bit sense...it does help...thx dawg (thumbs up)....but i'll still ask for help though :)
#include <iostream> using namespace std; int main() { return 0; }
#include <iostream> using namespace std; int main() { // create matrix[10][10] // for each i in matrix [1][i] // get random number between 1 and 100 // matrix[1][i] = random number // for each i in matrix [2][i] // get random number betwee 100 and 200 // matrix[2][i] = rand /// and on to matrix [10][i] return 0; }
#include <iostream> using namespace std; int main() { // create matrix[10][10] int matrix[10][10]; int tmp_rand; // for each i in matrix [1][i] for (int i = 0; i < 10; i++) { // get random number between 1 and 100 /* I'm not going to give this away, but I'm pretty sure you could figure it out */ // matrix[1][i] = random number // for each i in matrix [2][i] // get random number betwee 100 and 200 // matrix[2][i] = rand /// and on to matrix [10][i] } return 0; }
Comment