I've been trying to overload the operator, so I can use a class for a priority_queue, thus far i have:
In function `bool operator<(const Thread&, const Thread&)':
71: passing `const Thread' as...
Type: Posts; User: ringo_shells
I've been trying to overload the operator, so I can use a class for a priority_queue, thus far i have:
In function `bool operator<(const Thread&, const Thread&)':
71: passing `const Thread' as...
look, I've just scrapped it and put the class in the same file as my main file...
i everyone,
I have a Class in an external file, and it seems no matter where i look on the net, I can't seem to find any info on how to get the class into the file with the main function, so i can...
thanks man, worked a treat!!
ok sweet will give it a shot!
and how would i do that? also would doing that be based on lines in the file? because thats what i have to go on..
Hello all, I am trying to create an array of strings read in from a file; however having no idea how long the file is, means I can't declare the array with a set size, and naturally seg faults...