407 Posted Topics
Re: I'm not very experienced with threads in C++, but from what you said, it shouldn't make a difference in the amount of time it takes to empty the buffer. Have you tried it on another computer? And how long are you setting it to sleep for? Also, some code might … | |
Re: [URL="http://www.microsoft.com/express/vc/"]Visual C++ Epress[/URL] is a free version of Visual Studio, it just requires separate downloads for other languages. | |
Re: Simple, for each character in the line array, search through the source array for the character, then use the same index to replace the characters with that of the target array...You'll most likely want to use two for-loops. | |
Re: The problem is with line 203. You're trying the assign the value of [icode]newAccount[/icode] to memory outside the bounds of the vector's array. Use [icode]account_Names.push_back(newAccount)[/icode] instead, and it should reallocate the memory for you. Nick | |
Re: It's 4 bytes on a 32-bit system (reason for a 4GB RAM limit), and 8 bytes on a 64-bit system. I believe you can check using something like sizeof(void*). | |
Re: After the do-while loop is done you can calculate everything. You have the size of the set of scores, [icode]counter[/icode], so all you need to do is declare an integer as an index to use in a for loop, as well as three double's for the high, low and average. | |
The End.