Forum: C++ 20 Hours Ago |
| Replies: 3 Views: 79 That doesn't give us very much to work with; it would help if you could clarify what "just doesn't happen" means. Is it truly not happening, as in the code appears to work but no files show up, or... |
Forum: C++ 2 Days Ago |
| Replies: 2 Views: 167 The pseudocode looks okay; I've attached a quick little .NET console program that appears to confirm your approach. This suggests to me that there might be some errors in your implementation of that... |
Forum: C++ 7 Days Ago |
| Replies: 3 Views: 113 You're not using cout properly in the loop. It looks like you want cout << x. Here are some examples (http://cplus.about.com/od/learning1/ss/clessontwo_4.htm).
Also, the for loop isn't right. ... |
Forum: C++ 14 Days Ago |
| Replies: 3 Views: 217 For that matter, so is encryption (http://en.wikipedia.org/wiki/Encryption). What you're doing barely qualifies; it's a Caesar cipher (http://en.wikipedia.org/wiki/Caesar_cipher), which provides no... |
Forum: C++ 30 Days Ago |
| Replies: 3 Views: 210 C is notorious for giving you "enough rope to shoot yourself in the foot"--but it doesn't matter what language you're talking about... if it allows you to define a recursive function, you can always... |
Forum: C++ Nov 4th, 2009 |
| Replies: 4 Views: 231 More food for thought... this probably goes beyond your current question, but I think it helps to demonstrate the modelling process:
The unmentioned "Class" object could be the true parent... |
Forum: C++ Sep 9th, 2008 |
| Replies: 4 Views: 514 The library is documented (http://jcatki.no-ip.org:8080/SDL_net/SDL_net.html) decently from a "what functions are there" perspective.
Good network programming techniques are another topic... |
Forum: C++ Sep 7th, 2008 |
| Replies: 4 Views: 514 You might try SDL_net (http://www.libsdl.org/projects/SDL_net/). It is free and cross-platform, and should cover both of your requirements:
Server detection using UDP to broadcast to the local... |
Forum: C++ Sep 8th, 2004 |
| Replies: 6 Views: 3,697 The second parameter to strcmp up there is actually a pointer--that's half of what an array is, just a location in memory (the other half is the field size, in this case char, to use when making... |
Forum: C++ Aug 20th, 2004 |
| Replies: 2 Views: 2,300 Well, here's an easy one--you've spelled a method two different ways (the first is correct):
Also, it won't compile until you actually define a body for that method like you did for... |
Forum: C++ Aug 16th, 2004 |
| Replies: 6 Views: 2,969 Have a look at SDL (http://www.libsdl.org/index.php)--it's pretty nifty. |
Forum: C++ Jun 17th, 2004 |
| Replies: 6 Views: 2,249 Straight GCC doesn't do Pascal as far as I know, but Free Pascal (http://www.freepascal.org/) and GNU Pascal (http://www.gnu-pascal.de/gpc/h-index.html) might do it for you.
Not all Windows... |
Forum: C++ Jun 10th, 2004 |
| Replies: 4 Views: 11,152 It's always great to see someone working on text-based games!
It looks like you have a decent start on a room-based game engine. You may want to take the time to use something besides fixed-size... |
Forum: C++ Jun 10th, 2004 |
| Replies: 6 Views: 15,322 Here's an explanation to complement Abu's code example:
A radix sort works with the digits of a number, working from the least significant digit to the most. Here's a sample set of numbers:
423... |
Forum: C++ Jun 7th, 2004 |
| Replies: 5 Views: 3,595 There is nothing wrong with using a struct for the queue nodes here. If all you're storing are a few pieces of information, there's no need for an overgrown class to handle the same data.
The... |
Forum: C++ Jun 7th, 2004 |
| Replies: 9 Views: 4,052 I think people don't often realize there's more than one kind of cast in C++. If that's news to anyone, go look up casting in a good C++ reference and find out what they are and how they work.
... |
Forum: C++ Jun 7th, 2004 |
| Replies: 6 Views: 3,830 If you only need one previous value, there is a simple answer to your question: Use two volume variables.
It looks like you already have two, i.e. V and V2, but you're only using one of them. ... |
Forum: C++ May 26th, 2004 |
| Replies: 9 Views: 2,727 Programming languages are all fundamentally equivalent; try a few and pick the one that makes the most sense to you. As far as which one that might be, here's my $0.02:
BASIC was designed to be a... |