Search:

Type: Posts; User: Mimo

Search: Search took 0.00 seconds.

  1. Thread: C++ templates

    by Mimo
    Replies
    7
    Views
    1,519

    Thanks, that worked. I will look up constructor...

    Thanks, that worked. I will look up constructor initializers.
    edit: yes, it has too be a BST :(
  2. Thread: C++ templates

    by Mimo
    Replies
    7
    Views
    1,519

    Hi, This is about as simple as I can make it...

    Hi,
    This is about as simple as I can make it (you can remove operator overloads I guess). My error is error C2512: 'PriorityQueue<T,K>::PriorityNode' : no appropriate default constructor...
  3. Thread: C++ templates

    by Mimo
    Replies
    7
    Views
    1,519

    C++ templates

    Hi, I'm fairly new to C++. I'm trying to make a priority queue with a binary search tree. My BST class is


    template <class T>
    class BST
    {
    private:
    class Node
    {
    public:
  4. Replies
    15
    Views
    9,190

    Thanks for your reply. I tried your code and it...

    Thanks for your reply. I tried your code and it worked great in my test application, but unfortunately it caused a deadlock again. I found this this which states that what I am trying to do is...
  5. Replies
    15
    Views
    9,190

    Thanks for your help! :) I'm rather new to C++,...

    Thanks for your help! :) I'm rather new to C++, I'm used to .NET doing my bidding for me. Anyway, I tried WaitForSingleObject; it seemed like the easiest solution to my problem. It worked great in my...
  6. Replies
    15
    Views
    9,190

    CreateThread() too slow

    Hi,
    I'm trying to create a basic multi-threading application in C++. The problem is CreateThread() is too slow. Worse still, it doesn't appear to halt my program while the new thread is created, the...
Results 1 to 6 of 6