Forum: Visual Basic 4 / 5 / 6 Dec 8th, 2005 |
| Replies: 14 Views: 150,693 You can use the TimeOfDay() function. Store the TimeOfDay into a variable called present when the start button is hit. And also store that value plus the number of seconds the user inputted into... |
Forum: Java Dec 1st, 2005 |
| Replies: 0 Views: 3,155 Does anyone know of a good book to learn how to java it up with the phones? |
Forum: C Dec 1st, 2005 |
| Replies: 1 Views: 4,366 I'm programming a text based game and I'd like to turn it into a cell phone game.
Unfortunately I don't know how to do it and I can't find any books on this.
Does anyone have a book idea?... |
Forum: C++ Nov 27th, 2005 |
| Replies: 15 Views: 4,632 What I'm saying is that you shouldn't try to make someone feel bad for not knowing what you already learned. There once was a time where you were the same way. |
Forum: C++ Nov 27th, 2005 |
| Replies: 15 Views: 4,632 If you think about 5 minutes before you knew this trick this post wouldn't be very helpful. |
Forum: C++ Nov 23rd, 2005 |
| Replies: 5 Views: 2,451 |
Forum: C++ Nov 23rd, 2005 |
| Replies: 5 Views: 2,451 That makes much more sense. Thank you.
Bye the way, I edited and apparently added a couple of bugs with my first algorithm. Sorry. This version should work:
// If this doesn't work, then... |
Forum: C++ Nov 23rd, 2005 |
| Replies: 5 Views: 2,451 The teammates was just an illustration. I'm actually making a game that has eight different kind of spaces represented by an unsigned integer.
struct space {
unsigned int piece:3;
/* Three... |
Forum: C++ Nov 23rd, 2005 |
| Replies: 5 Views: 2,451 You created a bunch of random numbers, but say you don't want a bunch of random numbers exactly. Say you have ten members of a team and you want to give them a random position represented by 0 to 9.... |
Forum: C++ Nov 23rd, 2005 |
| Replies: 30 Views: 888,342 This will shuffle integers aound anyway you like. So if you had an array that represented a deck of cards called "deck[]", you would call the function like this:
shuffle(&deck, 52, 0, 0);
This... |