have a go

This is a discussion on have a go within the C++ Programming forums, part of the General Programming Boards category; i want to write a program that can plot x's in a two dimentional array the x overwrite the "." ...

  1. #1
    Unregistered
    Guest

    Cool have a go

    i want to write a program that can plot x's in a two dimentional array

    the x overwrite the "." when a value is entered for example....

    basically it is to book a row of seats in a theatre and the dots represent seats that are unbooked.


    any ideas??

    thanx

  2. #2
    Registered User
    Join Date
    Sep 2001
    Posts
    305
    youre probably gonna have to use something like gotoxy, check the faq.

  3. #3
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,386
    Or create a 2D array like:

    char plot_array [ROWS][COLS];

    Then put an x's at plot_array[row][col] and finally print it on the screen.

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21