ideas for logic

M

mickCyber

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
 
T

tonydee

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,241
Members
46,831
Latest member
RusselWill

Latest Threads

Top