I'm pretty new at this myself, but I think you need to take the 'void' out of your function call:
FROM
void menu();
TO
Type: Posts; User: mfknitz
I'm pretty new at this myself, but I think you need to take the 'void' out of your function call:
FROM
void menu();
TO
Thanks everyone for your great replies. The GetTickCount() worked but still wasn't accurate enough for really small lists. The QueryPerformanceCounter works great though.
I've allocated more...
Elixia--
As far as I can tell it's just an empty container with zero length and memory is allocated every time push_back() is called (not very efficient as I see now).
Zach L.--
That makes a lot...
What I've done so far is created a zero length vector and called push_back() as I read from the file. Is it better to create a vector of say 2000 (my estimate) up front, even though there could be...
Thanks, I'll give those a shot. Appreciate the info on vectors.
This is my first post and any help would be appreciated. I'm writing a program that reads a file of integers of unknown length, then allows the user to choose 1 of 5 kinds of sorts. At the end....