fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3. #include <vector>
  4. #include <string.h>
  5.  
  6. int main(){
  7.  
  8. char score[10][10] = {'x'};
  9.  
  10.  
  11. cout<< " a b c d e f g h i j"<< endl;
  12. cout <<" +-------------------+"<< endl;
  13. for (int i = 0; i < 10; i++) {
  14. cout<<" "<< i <<"|" ;
  15. for (int j = 0; j < 10; j++) {
  16. cout << score[i][j];
  17. }
  18. if(i == 0){
  19. cout << " |";
  20.  
  21. }
  22. else{
  23. cout << " |";
  24. }
  25. cout<< endl;
  26.  
  27. }
  28. cout <<" +-------------------+"<< endl;
  29.  
  30. }
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
   a b c d e f g h i j
  +-------------------+
 0|x                  |
 1|                   |
 2|                   |
 3|                   |
 4|                   |
 5|                   |
 6|                   |
 7|                   |
 8|                   |
 9|                   |
  +-------------------+