Thanks, that worked. I will look up constructor initializers.
edit: yes, it has too be a BST :(
Type: Posts; User: Mimo
Thanks, that worked. I will look up constructor initializers.
edit: yes, it has too be a BST :(
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...
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:
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...
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...
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...