ideas for logic

Discussion in 'C++' started by mickCyber, Apr 6, 2010.

  1. mickCyber

    mickCyber Guest

    Hi
    I'm looking for some ideas on how you would do that:

    I've random pop up messages which i have to write each on a single line.
    Now the newest is on top, older fall down one line at each new message.
    But also go back up one line whenever one message between is not valid
    anymore.

    Any ideas? Many thanks
    Michael
     
    mickCyber, Apr 6, 2010
    #1
    1. Advertising

  2. mickCyber

    tonydee Guest

    On Apr 6, 2:14 pm, mickCyber <> wrote:
    > I'm looking for some ideas on how you would do that:
    >
    > I've random pop up messages which i have to write each on a single line.
    > Now the newest is on top, older fall down one line at each new message.
    > But also go back up one line whenever one message between is not valid
    > anymore.


    The STL should be your friend. You could use a std::list<>, or
    perhaps a std::map<> keyed on time, depending on how you plan to find
    the invalid messages for removal....

    Cheers,
    Tony
     
    tonydee, Apr 6, 2010
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. David
    Replies:
    2
    Views:
    1,008
    Anthony J Bybell
    Nov 2, 2004
  2. Samuel Patterson
    Replies:
    0
    Views:
    481
    Samuel Patterson
    Dec 11, 2003
  3. John Adams

    perl newbie: leaner code ideas

    John Adams, Jan 31, 2004, in forum: Perl
    Replies:
    2
    Views:
    479
  4. spike
    Replies:
    8
    Views:
    1,481
    Steve Holden
    Feb 9, 2010
  5. sankaran1984

    C++ Coding Logic - Various Ideas

    sankaran1984, Jul 3, 2010, in forum: C Programming
    Replies:
    0
    Views:
    271
    sankaran1984
    Jul 3, 2010
Loading...

Share This Page