Advertisement
Guest User

Untitled

a guest
Sep 27th, 2016
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.64 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6.  
  7.     char a, b, c, d, e, f, g, h, i;
  8.     cout << "Insert board pieces (X for X, O for O and - for empty): \n";
  9.     cout << "a: ";
  10.     cin >> a;
  11.     cout << "b: ";
  12.     cin >> b;
  13.     cout << "c: ";
  14.     cin >> c;
  15.     cout << "d: ";
  16.     cin >> d;
  17.     cout << "e: ";
  18.     cin >> e;
  19.     cout << "f: ";
  20.     cin >> f;
  21.     cout << "g: ";
  22.     cin >> g;
  23.     cout << "h: ";
  24.     cin >> h;
  25.     cout << "i: ";
  26.     cin >> i;
  27.  
  28.     cout << "**************************" << endl;
  29.     cout << a << " " << b << " " << c << endl;
  30.     cout << d << " " << e << " " << f << endl;
  31.     cout << g << " " << h << " " << i << endl;
  32.     cout << "**************************";
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement