fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4. void fillArray (char array[][4]);
  5.  
  6. int main ()
  7. {
  8. char airplane[7][4] = {{'A', 'B', 'C', 'D'},
  9. {'A', 'B', 'C', 'D'},
  10. {'A', 'B', 'C', 'D'},
  11. {'A', 'B', 'C', 'D'},
  12. {'A', 'B', 'C', 'D'},
  13. {'A', 'B', 'C', 'D'},
  14. {'A', 'B', 'C', 'D'}};
  15.  
  16. fillArray (airplane[][4]);
  17.  
  18.  
  19. system ("PAUSE");
  20. return 0;
  21. }
  22.  
  23. void fillArray (char array[][4])
  24. {
  25.  
  26.  
  27. for (int i=0; i<7; i++)
  28. {
  29. cout<<i+1<<"\t";
  30.  
  31. for (int j=0; j<4; j++)
  32. {
  33. cout<<array[i][j]<<"\t";
  34. }
  35.  
  36. cout<<"\n";
  37. }
  38. return;
  39. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:16: error: expected primary-expression before ‘]’ token
prog.cpp:19: error: ‘system’ was not declared in this scope
stdout
Standard output is empty