Search:

Type: Posts; User: Valdo

Search: Search took 0.00 seconds.

  1. Thread: Fractal Zooming

    by Valdo
    Replies
    1
    Views
    939

    Fractal Zooming

    Hello

    I'm trying to zoom into a fractal and to do this I'm using mouse click to calculate where the centre should be and then taking away 1 from the right and top and adding 1 to the left and...
  2. Replies
    3
    Views
    882

    "Windows has triggered a breakpoint in...

    "Windows has triggered a breakpoint in algorithm.exe.


    This may be due to a corruption of the heap, which indicates a bug in algorithm.exe or any of the DLLs it has loaded.


    This may also be...
  3. Replies
    3
    Views
    882

    Pathfinding problem

    Had to make a path finding program using the a* algorithm but when I compile it just crashes, anyone got any idea where I'm going wrong?

    Cheers
  4. Thread: Beginner!

    by Valdo
    Replies
    11
    Views
    1,319

    Right I'll try adding a new class, and change the...

    Right I'll try adding a new class, and change the main() to int... Using an array or vectors for the player is hard for me I'm just learning that. I just need it working for two players. And the last...
  5. Thread: Beginner!

    by Valdo
    Replies
    11
    Views
    1,319

    Thanks alot for helping me! Here's my classes...

    Thanks alot for helping me!

    Here's my classes attempt:


    #include <iostream>#include <ctime>


    class dartist{
    public:
  6. Thread: Beginner!

    by Valdo
    Replies
    11
    Views
    1,319

    So I don't need to re-write all my code? Just...

    So I don't need to re-write all my code? Just re-position it?

    Okay I did what you said and created a class game, in my main I put my counters. Having some problems with he players though, I've got...
  7. Thread: Beginner!

    by Valdo
    Replies
    11
    Views
    1,319

    Basically a game of 301 darts and both players...

    Basically a game of 301 darts and both players need to get to 0.


    #include <iostream>#include <ctime>


    int BullFunction(int percent) // throw dart function
    {
    int r = rand()%100;...
  8. Thread: Beginner!

    by Valdo
    Replies
    11
    Views
    1,319

    " it will probably be easy" haha! not so sure...

    " it will probably be easy" haha! not so sure :-).

    Thanks for the suggestions, any chance I could send you my code then? Just so you could see whether it's going to be possible or I might need to...
  9. Thread: Beginner!

    by Valdo
    Replies
    11
    Views
    1,319

    Beginner!

    I had to write a simple program using functions in C style now I need to re-write my current program using classes in C++ style. I have no idea where to begin, my code is only like 100 lines though...
  10. Thread: Flipping a coin!

    by Valdo
    Replies
    2
    Views
    1,322

    Flipping a coin!

    Hello,


    Just a beginner! I've got a darts game between two players. I need to work out how many games player 1 wins and player 2 wins out of 1000 games if there is a coin flip and thereafter the...
  11. Thread: Help! (Beginner)

    by Valdo
    Replies
    3
    Views
    1,049

    Would I have this inside my while loop? Is there...

    Would I have this inside my while loop? Is there any way I could send you my code I think I might be going wrong somewhere...

    Thanks alot
  12. Thread: Help! (Beginner)

    by Valdo
    Replies
    3
    Views
    1,049

    Help! (Beginner)

    Hello guys,

    I've got a Darts program at the moment and it calculates how many throws were needed to go from 301 to 0.

    I need to work out how to calculate the average of game frequency (how many...
  13. Thread: Beginner!

    by Valdo
    Replies
    21
    Views
    2,262

    Beginner!

    Hello!

    I'm trying to make a bulls function! On average I would like it to hit the Bull 70% of the time and the other 30% (miss) between 1 to 20. As you can see I have the basic code, but I'm just...
Results 1 to 13 of 14