Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void input_matr(int a[][20],int *n, int *m)
- {
- int (*u)[20],*uj;
- do
- {
- cout << "Введите количество столбцов и строк матрицы А:" << endl;
- cin >> *m >> *n;
- }
- while(*n<0 || *m<0 || (*n)*(*m)<5);
- cout << endl;
- cout << "Введите элементы матрицы"<< endl;
- for(u=a;u<a+*n;u++)
- for(uj=*u;uj<*u+*m;uj++)
- cin >> *uj;
- cout << "Матрица A:"<< endl;
- for(u=a;u<a+*n;u++)
- {
- for(uj=*u;uj<*u+*m;uj++)
- cout << *uj << " " ;
- cout << endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment