Forum: C++ Aug 12th, 2009 |
| Replies: 50 Views: 1,833 good luck however if the server was written properly, the client is merely a playback. It can only request things of the server and its the servers job to validate a message, detect an invalid... |
Forum: C++ Aug 12th, 2009 |
| Replies: 50 Views: 1,833 I think you're all missing the point. Sockets doesn't send immediately.
Send Packet 5
Send Packet 8
Send Packet 7
It won't necessarily arrive as three packets 5 then 8 then 7 bytes in... |
Forum: C++ Aug 12th, 2009 |
| Replies: 8 Views: 405 Good for you. Stay on Honors Science and Math all the way through High School, get your Calculus and Physics wrapped up so you can slide right into a University Engineering program. You'll then need... |
Forum: C++ Jul 31st, 2009 |
| Replies: 7 Views: 331 This definitely sounds like a homework assignment!
Key here is you said lottery game.
So sounds like you need a card shuffle algorithm for a deck of 49 cards, but you're only going to draw the... |
Forum: C++ Jul 25th, 2009 |
| Replies: 2 Views: 156 We don't need to give you only. Cruise the posts and pick out a few you like!
And then do them yourself! |
Forum: C++ Jul 8th, 2009 |
| Replies: 52 Views: 1,427 What Tux4Life said!
But would make sense to store the string size so future strlen() requests of your string in class only needs to return the value. Not look it up!
MyString::MyString(const... |
Forum: C++ Jul 7th, 2009 |
| Replies: 21 Views: 587 Looks good. But in actual development you would return a value. Needing to return 2nd to Nth values would involve passing pointers or dereferencing.
Something to keep in mind about... |
Forum: C++ Jun 18th, 2009 |
| Replies: 2 Views: 413 #include <crtdbg.h>
// Add this to the termination code!
#ifndef NDEBUG
_CrtDumpMemoryLeaks( );
#endif |
Forum: C++ Jun 17th, 2009 |
| Replies: 45 Views: 1,597 You'r entering goals as strings but you aren't comparing the integer values of those strings. |