Search:

Type: Posts; User: sajanphilip

Search: Search took 0.02 seconds.

  1. Replies
    1
    Views
    1,197

    Erratic behaviour of vectors

    Hi

    The following program was my attempt to implement 2D vectors:



    #include<cstdio>
    #include<vector>

    int main()
  2. Replies
    6
    Views
    1,291

    Structure is fine but..

    But if I use a structure how will I perform a search?? In that case I will have to serially check each of the elements in the vector for the message id.. If the match is towards the end of the...
  3. Replies
    6
    Views
    1,291

    One more question

    I also wanted know how the performance would be affected if I use a map with message id as key and a list containing the delegates as the value....
  4. Replies
    6
    Views
    1,291

    2 vectors vs multimaps

    Hi

    I am currently writing a message handling module which uses delegates. I am maintaining 2 vectors, one for message ids and the other one for the delegate (pointer to the function to be called)....
  5. Thanx guys. I was trying out the same thing using...

    Thanx guys. I was trying out the same thing using a simple code. Executing it each time took different amounts of time.
  6. Sleep() causing unexplained reduction in cpu load

    I have written a test code using timer delegates. About 30 methods are delegated and will be called on the expiry of a timer. This causes the cpu load to spike up every 2 seconds. While trying to...
Results 1 to 6 of 6