fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5.  
  6. int main()
  7. {
  8. for(int i = 0; i < 31; ++i)
  9. {
  10. if (i == 15)
  11. for(int j = 0; j < 31; ++j)
  12. cout << (j == 15 ? '+' : '-');
  13. else
  14. {
  15. for(int j = 0; j < 15; ++j) cout << ' ';
  16. cout << '|';
  17. }
  18. cout << "\n";
  19. }
  20. }
  21.  
Success #stdin #stdout 0.01s 5676KB
stdin
Standard input is empty
stdout
               |
               |
               |
               |
               |
               |
               |
               |
               |
               |
               |
               |
               |
               |
               |
---------------+---------------
               |
               |
               |
               |
               |
               |
               |
               |
               |
               |
               |
               |
               |
               |
               |