Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- char a, b, c, d, e, f, g, h, i;
- cout << "Insert board pieces (X for X, O for O and - for empty): \n";
- cout << "a: ";
- cin >> a;
- cout << "b: ";
- cin >> b;
- cout << "c: ";
- cin >> c;
- cout << "d: ";
- cin >> d;
- cout << "e: ";
- cin >> e;
- cout << "f: ";
- cin >> f;
- cout << "g: ";
- cin >> g;
- cout << "h: ";
- cin >> h;
- cout << "i: ";
- cin >> i;
- cout << "**************************" << endl;
- cout << a << " " << b << " " << c << endl;
- cout << d << " " << e << " " << f << endl;
- cout << g << " " << h << " " << i << endl;
- cout << "**************************";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement