Making Tic-Tac-Toe Console App

I am making tic-tac-toe in a console app but i do no know what to write.I have made my menu and i also want to know how i can like clean all the writing off the conole app so you cant see it no more .Here is my code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#include <iostream>
#include <windows.h>
#include <time.h>

using namespace std;

int main()
{
    cout << "Welcome to Tic-Tac-Toe" << endl; //Says welcome to Tic Tac Toe
    Sleep(1000);

    int choice = 0; //Declares the 'Choice' Variable

    while (choice != 4)
    {
    cout <<"Enter choice:"<< endl <<
    "1)Play" << endl << //Prints out Enter Choice ,play,help and Quit
    "2)Help" << endl<<
    "3)Quit" << endl;

    cin >> choice; //Duno

    switch(choice) //Switch
    {
    case 1:

    break; //Repeats
    case 2:

    break; //Repeats
    case 3:
    return 0; //Ends Program
    }
}}
Last edited on
Easiest way is to just make a function that prints a hundred new lines. This will push up the old stuff so it's no longer on the visible section of the console.
Topic archived. No new replies allowed.