104 Posted Topics

Member Avatar for SasseMan

Hi, I have a problem with two classes who both has instances to each other. Here are the header files... [code] #ifndef ENVIRONMENT_H #define ENVIRONMENT_H #include <vector> #include "item.h" #include "actor.h" namespace game{ class Environment{ public: Environment(){} Environment(std::string name_, std::string description_); enum directions { north = 0, north_east = 1, …

Member Avatar for Ancient Dragon
0
113
Member Avatar for SasseMan

Hello! I am a student from Stockholm, Sweden studying Computer Science at KTH (Translation, RIT - Royal Institute of technology), and I have about a year left to get my masters degree. My concentration is on Autonomous Systems where it mostly comes down to computer vision (Object detection, computer geometry …

Member Avatar for cuinee
0
94
Member Avatar for arcticM

It sound to me like you are describing bucket sort, or radix sort where you use the entire integer to place in buckets instead of parts of it. It is fast but not very space efficient. Runs practically in O(n) (linear) time.

Member Avatar for SasseMan
0
234
Member Avatar for SasseMan

Hi! I am having some problems with using the operator= on an dereferences object. I have the code... [CODE]Julian j1(2319,1,7); Date * dp = new Gregorian(2319,1,23); cout << (*dp) << " " << typeid(*dp).name() << endl; *dp = j1; cout << (*dp) << " " << typeid(*dp).name() << endl; j1 …

Member Avatar for SasseMan
0
102

The End.