- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
8 Posted Topics
Re: Doing it yourself, as iamthwee says, is best. Not only will you learn more, but you won't commit plagiarism. You needn't use graphics, as a text/console output is doable. | |
I'm about to start writing a genetic algorithm program which will be able to find the highest/lowest/whatever else values of variables required for an equation, and have come upon a point about which I am uncertain. I do not know whether I should store and work upon the values as … | |
Re: All you have to do is compile it. You do this by going to Build -> Compile [filename]. The .exe file is then in a folder called 'Debug' in the place you saved the source - if you saved the source in C:\foo, the exe would be in C:\foo\Debug. | |
Re: There are two very simple ways of doing this:[LIST] [*]To actually do the number=rand, cout stuff 4 times or.. [*]To use another for loop.[/LIST]I'll add another for loop to your code. [code=c++]int main() { srand ((unsigned int) time(NULL)); int i, high, low, number; int j; //added high = 47; low … | |
Re: I've only made graphical games on GBA, but the principals are probably the same. In your main gane loop, you'll have one (or more) function(s) that update a character's or whatever's position, and then once all of those functions have been run through, you update the screen. | |
I'm in the middle of writing a C++ program which will eventually sort data, using a tree. I would like to swap a child with its parent if the child's value (could be anything, using a template) is less than the parent's. however, I have become stuck when trying to … | |
Re: This sounds like a constructor and destructor problem. Think about how you can get an object of a class to be created whilst adhering to the rules. | |
Re: [quote=mariocatch;369719]it's definitely on line 27... /MindReadingOff post your code...[/quote] I'm pretty sure it's actually line 26, mate. |
The End.