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. Advertisements

  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. Advertisements

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,302
    Anthony J Bybell
    Nov 2, 2004
  2. Samuel Patterson
    Replies:
    0
    Views:
    566
    Samuel Patterson
    Dec 11, 2003
  3. John Adams

    perl newbie: leaner code ideas

    John Adams, Jan 31, 2004, in forum: Perl
    Replies:
    2
    Views:
    588
  4. Jasper
    Replies:
    0
    Views:
    623
    Jasper
    Jun 28, 2004
  5. greg
    Replies:
    0
    Views:
    549
  6. Peter Row

    multi-threading issues, ideas to solve?

    Peter Row, Dec 12, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    604
    Peter Row
    Dec 15, 2003
  7. spike
    Replies:
    8
    Views:
    1,819
    Steve Holden
    Feb 9, 2010
  8. sankaran1984

    C++ Coding Logic - Various Ideas

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