407 Posted Topics

Member Avatar for GadiK

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 …

Member Avatar for GadiK
0
2K
Member Avatar for Yilon

[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.

Member Avatar for Ancient Dragon
0
170
Member Avatar for azagorath

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.

Member Avatar for azagorath
0
279
Member Avatar for gotm

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

Member Avatar for nmaillet
0
95
Member Avatar for quocnam00

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*).

Member Avatar for Narue
0
179
Member Avatar for MMac1218

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.

Member Avatar for nmaillet
0
107
Member Avatar for karang

The End.