I am having an issue with an overzealous select() call. I works as expected until I send a single UDP message to my socket. Then it reports that there is activity even after the application...
I agree with what you have stated, but why would one do this unless they are short of RAM? The whole point of creating a template is to provide reusable code that can work with any object, those...
Most s/w development projects have standards that differ from your opinion. But at the end of the day, do whatever pleases you (and your peers). Don't cry though when someday you have to maintain a...
One of the keywords, or noun, in your statement is 'game'. You should have a class object that represents the Game, and it is within there, that you would declare your Player object(s), game-board,...
There is not much information provided by the fstream exception, other than an error occurred when attempting to open or read from the file. Generally speaking, there really is no difference between...
This issue lies with the declarations of your functions. You really want to pass all of your parameters by reference, not by value. The error that you are getting is caused by your attempt to copy...
The use of ctime() requires a time_t parameter. Why do you not use that same time_t parameter in either gmtime() or localtime() to yield the struct tm?
I figured this was for a class, and thus I provided a semi-advanced example. Take the code I wrote, an in lieu of the vector, pass the array as you had done. Within the choiceRead() function,...
Initially when you prompt the user for a choice between encoding and decoding, only the numeric input is processed and stored in nSel. The newline character is still sitting in the cin stream, and...
You are writing code in C++. You should avoid using a C-style array for storing values; use an std::vector instead. You do not need to keep track of its size, and thus is safer to use (there is no...