Is this right?(about a class) (code to download) etc..

This is a discussion on Is this right?(about a class) (code to download) etc.. within the C++ Programming forums, part of the General Programming Boards category; What does this code do? It doesn't really do anything, except draw a small character-based rectangle from top to bottom, ...

  1. #1
    0x01
    Join Date
    Sep 2001
    Posts
    88

    Is this right?(about a class) (code to download) etc..

    What does this code do?
    It doesn't really do anything, except draw a small character-based rectangle from top to bottom, left to right ( it looks like a window)... Eventually this rectangle will evolve into something like a menu or window to give a message or something... It supposed to work like a real GUI, if the window ever appears over some text in the console, it should look as if it never overwrote it when its erased... so far, I have accomplished this. However, I don't like the way my code looks... I know it definitely isn't profressional. I would like anyone who wants to spare the time to take a look at it and tell me what you would do differently... thats it(That includes everything, from what to make private, public, or even changeing the way the code looks etc...)

    There is not a lot of code at all, and it "should" be very easy to understand(Its newbie stuff).

    The problem.
    The way I got the window to remember what was at the location it overwrote to replace it later... just doesn't look right... thats all I can say.. everytime I look at the code, I keep thinking I came up with a lousy way to replace what the window overwrote... (for example: char character[25][81], and unsigned short attribute[25][81] : I don't like the look of those.)

    Another thing is, variables that others might want to make private in there class; I see no need to?

    I can't think... and I'm getting mad eye fatigue... I am sure there are run-ons etc... and I probably didn't explain things very well.

    Any advice would be much appreciated.

    BTW- You need MSVC++ to compile project.
    Attached Files Attached Files

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Mixing C++ class and non-class code?
    By Depthcharge101 in forum C++ Programming
    Replies: 1
    Last Post: 05-27-2009, 12:11 AM
  2. Replies: 2
    Last Post: 05-14-2009, 04:13 PM
  3. Class design problem
    By h3ro in forum C++ Programming
    Replies: 10
    Last Post: 12-19-2008, 08:10 AM
  4. Default class template problem
    By Elysia in forum C++ Programming
    Replies: 5
    Last Post: 07-11-2008, 08:44 AM
  5. gcc problem
    By bjdea1 in forum Linux Programming
    Replies: 13
    Last Post: 04-29-2002, 06:51 PM

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