last array help post (i think)

This is a discussion on last array help post (i think) within the C++ Programming forums, part of the General Programming Boards category; now that i know how to print out the arrays how can i get 2 arrays to print out next ...

  1. #1
    Registered User
    Join Date
    Jan 2002
    Posts
    77

    last array help post (i think)

    now that i know how to print out the arrays how can i get 2 arrays to print out next to each other

    for example

    speed 1 55
    speed 2 40

    and so on
    Hooked On Phonics Didn't Work For Me!

  2. #2
    Peace
    Join Date
    Aug 2001
    Posts
    1,510
    Code:
    for (int i = 0; i < MAX_ARRAY_ELEMENT; i ++)
       printf("speed %i %i", i, speed[i]);
    Also see my site just uploaded tonight. lightatdawn.cprogramming.com. Specifically check out the first heading. A little more info there you might find helpful.
    "There's always another way"
    -lightatdawn (lightatdawn.cprogramming.com)

  3. #3
    Registered User
    Join Date
    Jan 2002
    Posts
    77
    is there any way i can do that with the cout command?
    Hooked On Phonics Didn't Work For Me!

  4. #4
    Registered User
    Join Date
    Jan 2002
    Posts
    77
    never mind i got it to work with cout
    Hooked On Phonics Didn't Work For Me!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Have problems with copying my array!
    By AvaGodess in forum C Programming
    Replies: 11
    Last Post: 09-25-2008, 12:56 AM
  2. [question]Analyzing data in a two-dimensional array
    By burbose in forum C Programming
    Replies: 2
    Last Post: 06-13-2005, 07:31 AM
  3. Class Template Trouble
    By pliang in forum C++ Programming
    Replies: 4
    Last Post: 04-21-2005, 04:15 AM
  4. Array Program
    By emmx in forum C Programming
    Replies: 3
    Last Post: 08-31-2003, 12:44 AM
  5. two dimensional dynamic array?
    By ichijoji in forum C++ Programming
    Replies: 6
    Last Post: 04-14-2003, 04:27 PM

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