No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
I have a situation where there are numerous objects that need to wander about on a 2D plane. The objects should avoid certain areas in the plane and should also eventually make their way toward a desired goal destination. Where can I find resources that would help with implementing this … |
|
I am somewhat new to XSLT, and I have a situation where depending on certain conditions I want to convert XML like: <SomeElement> <ChildElement/> <ChildElement/> <ChildElement/> ... </SomeElement> to: <SomeElement value="something"> <ChildElement/> <ChildElement/> <ChildElement/> ... </SomeElement> I don't want to specify the child elements in the template that modifies the … |
|
I have a situation whereby I need to copy the contents of an STL vector into a memory buffer provided by the system. One might think that given: [CODE]std::vector<ObjectType> source; // Initalized to hold the objects ObjectType* target = reinterpret_cast<ObjectType*>(buffer); // Points to system provided memory buffer[/CODE] someone could do … |
|
Expectations are this code: [CODE]#include <iostream> #include <limits> #include <stdexcept> using std::clog; namespace{ class FloatValue { public: FloatValue() : m_amount(0.0f) { clog << "Creating default floating point value.\n"; } explicit FloatValue(float amount) : m_amount(amount) { clog << "Creating floating point value with amount " << m_amount << ".\n"; if(std::numeric_limits<float>::infinity() == … |