Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <time.h>
- using namespace std;
- int k = 0;
- int n = 0;
- void matriceCasuale (int matrice[k][n] , int righe , int colonne){
- for ( int k = 0; k < righe ; k++){
- for (int n = 0; n < colonne ; n++){
- t = rand() % 10 + 1;
- matrice[k][n] = t;
- cout << matrice[k][n] << " ";
- }
- cout << endl;
- }
- }
- int main()
- {
- srand(time(NULL));
- int A[k][n];
- int t = 0;
- int k = 0;
- int n = 0;
- matriceCasuale(A[k][n] , 3 , 2);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement