fork download
  1. #pragma once
  2. #include <iostream>
  3. #include <vector>
  4. #include <windows.h>
  5. #include <iomanip>
  6. using namespace std;
  7.  
  8. void AutoInput (int ** data, int N, int M) {
  9.  
  10. for (int i = 0; i < M; i++)
  11. for (int j = 0; j < N; j++) {
  12. data[i][j] = rand() % 50;
  13. }
  14.  
  15. }
  16.  
  17. void Input (int ** data, int N, int M) {
  18.  
  19. for (int i = 0; i < M; i++)
  20. for (int j = 0; j < N; j++) {
  21. cin >> data[i][j];
  22. }
  23. }
  24.  
  25.  
  26. void OutPut(int ** data, int N, int M){
  27.  
  28. for (int i = 0; i < M; i++){
  29. for (int j = 0; j < N; j++) {
  30. cout << setw(2) << data[i][j] << " ";
  31. }
  32. cout << endl;
  33. }
  34. }
  35.  
  36. void OutPutCopy(int ** data, int N, int M){
  37.  
  38. for (int i = 0; i < N; i++){
  39. for (int j = 0; j < M; j++) {
  40. cout << setw(2) << data[i][j] << " ";
  41. }
  42. cout << endl;
  43. }
  44. }
  45.  
  46. void Transpose(int ** copy, int ** data, int N, int M){
  47. for(int i = 0; i < M; i++)
  48. for(int j = 0; j < N; j++)
  49. copy[j][i] = data[i][j];
  50. }
  51.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:1:9: warning: #pragma once in main file
 #pragma once
         ^
prog.cpp:4:21: fatal error: windows.h: No such file or directory
compilation terminated.
stdout
Standard output is empty