matrix program written in c++

This is a discussion on matrix program written in c++ within the C++ Programming forums, part of the General Programming Boards category; I know how to do a matrix program using array but my problem is how to output it. example: 0 ...

  1. #1
    Registered User
    Join Date
    Feb 2003
    Posts
    2

    Unhappy matrix program written in c++

    I know how to do a matrix program using array but my problem is how to output it.

    example:
    0 0 0 + 4 5 6
    0 0 0 8 6 4

    i want the user to input the elements of the matrix in such a way that when he input a number and press the Enter key, the cursor will automatically move to the next element (to the right).

    e.g.
    3 _| 0
    0 0 0
    0 0 0
    *****it will overwrite the 0's

    I don't know any function or command in c++ that will enable the cursor move to the right without using "\t". Please help me

  2. #2
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    gotoxy(int X, int Y);

    Not sure if it's a standard function though...
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  3. #3
    Registered User Cela's Avatar
    Join Date
    Jan 2003
    Posts
    362
    >>Not sure if it's a standard function though...
    It isn't :-)
    *Cela*

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Client-server system with input from separate program
    By robot-ic in forum Networking/Device Communication
    Replies: 3
    Last Post: 01-16-2009, 02:30 PM
  2. Replies: 10
    Last Post: 09-07-2008, 11:38 PM
  3. have i written this program correctly ?
    By broli86 in forum C Programming
    Replies: 6
    Last Post: 07-20-2008, 03:20 PM
  4. Help! matrix program
    By jadman in forum C Programming
    Replies: 3
    Last Post: 06-21-2005, 11:20 AM

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