Search:

Type: Posts; User: animation

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,757

    Cool! Point a = {2,5};

    Cool!

    Point a = {2,5};
  2. Replies
    2
    Views
    1,757

    How to write points in this algorithm

    Hi all!

    I have found Andrew's monotone convex hull algorithm implemented on the net:
    Algorithm Implementation/Geometry/Convex hull/Monotone chain - Wikibooks, open books for an open world

    This...
  3. Replies
    9
    Views
    12,678

    Ohhh! Thanks Salem, have only initialized 1/10 of...

    Ohhh! Thanks Salem, have only initialized 1/10 of the IDMap arrays :-/
  4. Replies
    9
    Views
    12,678

    But I have initialized the values in IDMap as you...

    But I have initialized the values in IDMap as you can see now. But I don't understand why I can't say:

    HRList[0] = m_OurPopulationManager->FemaleHomeRangeMap->GetMapValue(m_Location_x / 10,...
  5. Replies
    9
    Views
    12,678

    The IDMap: IDMap::IDMap(Landscape * L) {...

    The IDMap:

    IDMap::IDMap(Landscape * L)
    {
    maxx=L->SupplySimAreaWidth()/10;
    maxy=L->SupplySimAreaHeight()/10;
    m_TheMap = new TAnimal*[ (maxx)*(maxy) ];
    for (int y=0; y<(maxx); y++)
    {...
  6. Replies
    9
    Views
    12,678

    Hi again, I have an array called IDMap[][]...

    Hi again,

    I have an array called IDMap[][] which i initially fill up with NULL's. Then have a nother array: HRList[8] which is the filled up with values from IDMap[][].
    And since IDMap[][] is...
  7. Replies
    9
    Views
    12,678

    How do I test for this output: CDCDCDCD?

    Hi all!

    I'm using Visual studio, and have been working on a method for a while now.
    The problem is that I'm testing if an entrance in an array have the value NULL. But when I write the value out...
  8. Thanks kmdv, After reading your response i...

    Thanks kmdv,

    After reading your response i could see that it was better with a simpler approach. But it will be necessary in my program to do this at some time - giving an object the...
  9. How do you Access base variable from class outside the hierarchy?

    How do you access a variable from a base class outside the class hierarchy?

    example:

    class Base
    {
    ...
    int x;
    }
  10. Replies
    3
    Views
    3,731

    Thank you, i just added this part to Cat.cpp and...

    Thank you, i just added this part to Cat.cpp and it works.


    Abstract_Cat::Abstract_Cat(int a_x, int a_y, Landscape * p_L, Cat_Population_Manager* p_PPM) : TAnimal(a_x,a_y,p_L)
    {
    }
    ...
  11. Replies
    3
    Views
    3,731

    Abstract class de/con-structor problem

    Hi all,

    I have tried to make an abstract class in the file Cat.h that already contains the class Cat, but I cant get the Cat class to extend the Abstract cat class. My goal is to make an interface...
  12. Replies
    0
    Views
    1,619

    Visual Assert cannot find my test class

    Hi all,

    I have recently installed Visual Assert which works very well for me when im creating new programs, but I am working on a bigger project which im hoping to do automatic testing on. My...
  13. Replies
    4
    Views
    2,429

    I think i works the same way as in java. You can...

    I think i works the same way as in java. You can add a new class to the project or make a new class in the same file you were just working on. You dont need to make a new project for every new code...
  14. Well ofcause. Thank you :-) I think i was blinded...

    Well ofcause. Thank you :-) I think i was blinded by all the other dificalties i had with assertions - this one i should have figured out my self.

    To brewbuck: Thanks, this works too, but then you...
  15. Thank you! This works great. Creating the test in...

    Thank you! This works great. Creating the test in the same project seems to be the best approach for me.

    Thank you for the other answers.

    Quick question though. I can instantiate objects in the...
  16. Assertion: How to initialize a class object and use it

    Hi all,

    Am trying to figure out how to use assertions and have just installed Visual Assertion.

    Have two projects: Calculator and Test

    #include "Calculator.h"

    ...
  17. Replies
    6
    Views
    1,643

    Visual Assert was exactly what i needed. Thank...

    Visual Assert was exactly what i needed. Thank you :-) Should be integrated in the original program and not an add-on.
  18. Replies
    6
    Views
    1,643

    Do i simple write: #include...

    Do i simple write: #include "Cat_Population_Manager.h"
    because it will not except this. It makes a fatal error on that line.

    I cant understand it. What am i doing wrong??? Do i somehow have to...
  19. Replies
    6
    Views
    1,643

    Visual Studio: simple test case

    hi all,

    I am new to c++ and is trying to figure out how unit testing works in Visual Studio. The firt problem i have, is that my test class cannot find the class i want to instantiate.

    The...
Results 1 to 19 of 19