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 need to find how long it takes to execute a bunch of code. I've tried using clock() but it's just not accurate enough for the small functions (it says 0 cycles have passed). I heard of gprof but that only seems to be for Linux. The version of Visual … |
|
I have an alarmingly strange situation. I fill my map with const char * and int values. When I try to "find" the one I want, it says it's not there. Here's the short version: [code=c] // tempText = "socialize" for( actionIter =actionMap.begin(); actionIter !=actionMap.end(); ++actionIter ) { if ( … |
|
This would be trivial but it comes with a serious catch - I can't edit the Unrelated or Friend class. I can't seem to access a private data member despite the friend relationship between the classes. Code: [url]http://pastie.org/613042[/url] [code=c] class UnrelatedClass { ... private: friend class FriendClass; float m_fNumber; } … |