Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > ideas for logic

Reply
Thread Tools

ideas for logic

 
 
mickCyber
Guest
Posts: n/a
 
      04-06-2010
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


 
Reply With Quote
 
 
 
 
tonydee
Guest
Posts: n/a
 
      04-06-2010
On Apr 6, 2:14*pm, mickCyber <CyberM...@nospam.com> 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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
C++ Coding Logic - Various Ideas sankaran1984 C++ 0 07-03-2010 11:34 AM
Python Logic Map/Logic Flow Chart. (Example Provided) spike Python 8 02-09-2010 12:31 PM
Asynchronous Logic Gates and Analog Logic Gates Jyoti Ballabh Software 3 11-26-2009 06:48 PM
Introduction to Logic Gates Silverstrand Front Page News 0 10-24-2005 01:44 PM
M$ Business Logic .brian. Firefox 0 09-23-2004 10:32 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57