Crazy loops!

This is a discussion on Crazy loops! within the C++ Programming forums, part of the General Programming Boards category; Could someone please help me out with this? I've been at it all night and my brain refuses to work. ...

  1. #1
    843
    843 is offline
    Registered User
    Join Date
    Oct 2010
    Posts
    135

    Crazy loops!

    Could someone please help me out with this? I've been at it all night and my brain refuses to work. Basically, the input arguments are the arrays [A, B, C, D, E, F] and input. When I input C, I want the pointer to return C. Likewise for CD and CDE, but inputting Z or CDA will return NULL.

    EDIT: I got it! Not sure what I did though...
    Last edited by 843; 04-08-2011 at 11:13 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. arrays and loops
    By pmooney12 in forum C Programming
    Replies: 2
    Last Post: 11-22-2010, 10:38 PM
  2. loops and macros
    By ginom71 in forum C Programming
    Replies: 13
    Last Post: 07-18-2009, 02:04 PM
  3. Too many loops D:
    By F5 Tornado in forum C++ Programming
    Replies: 6
    Last Post: 12-03-2007, 01:18 AM
  4. crazy
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 23
    Last Post: 08-31-2002, 09:54 PM
  5. help with arrays and loops
    By jdiazj1 in forum C Programming
    Replies: 4
    Last Post: 11-24-2001, 04:28 PM

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