Advertisement
Guest User

Untitled

a guest
Dec 6th, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. // ConsoleApplication14.cpp : Defines the entry point for the console application.
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include<iostream>
  6. char tab[3][3] = {' ',' ',' ',' ',' ',' ',' ',' ',' '};
  7. using namespace std;
  8. int v;
  9.  
  10.  
  11. int main()
  12. {
  13.  
  14.  
  15.  
  16.  
  17. cout << tab[0][0] << " | " << tab[0][1] << " | " << tab[0][2] << endl;
  18. cout << "-----------" << endl;
  19. cout << tab[1][0] << " | " << tab[1][1] << " | " << tab[1][2] << endl;
  20. cout << "-----------" << endl;
  21.  
  22. cout << tab[2][0] << " | " << tab[2][1] << " | " << tab[2][2] << endl;
  23.  
  24.  
  25. cout << tab[0][0] 'x' ;
  26. /* tab[0][1]
  27. tab[0][2]
  28. tab[1][0]
  29. tab[1][1]
  30. tab[1][2]
  31. tab[2][0]
  32. tab[2][1]
  33. tab[2][2]
  34. */
  35.  
  36. getchar();
  37. getchar();
  38. return 0;
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement