at first, i try to do insert the first node when the root is NULL. When i run debugger, it makes sense. However, i see has bugs when it meet the line
cout<<"current node key is "<<ptr->ke...
when I searching a suspection about difference between c++ and java ,
I found a statement that is "c++ is semi object oriented language and java is full object oriented".
1) what is semi ...
Given: [ Platform ] <====> [ Mounts ] <=====> [ Laser ]
Consider a system where the software that executes on the Mounts handles bidirectional communication between Platform and Lasers.
M...
Hi Experts,
If I am accessing items in my map<UINT, UINT> mymap, if I am looking to see if an item exists and it is not there, how do I know? Do I use the [] operator?
e.g., Does mymap[2]...
I am doing my project, writting a c++ program to implement security encapsulation (layer) for IP traffice over DVB networks.
I encountered a problem with relation to execution speed, that i...
Hi,
I am using an X80 robot, from DrRobot , and I am trying to make him turn with 45 degrees and then drive forward. So I have to commands that I am using TurnDegree and DriveForward. But ...
Hi - A call to NetUserAdd is returning 2202, which indicates NERR_BadUsername. A USER_INFO_4 level record is being used to create a local user with a user ID of "testname". Is there something ...
I usually do everything I can to keep errors out of my compilation.
This one however been with my current project "forever", simply because I have no idea what to do about it.
Google doesn't...
I have a memory crash.I am using Visual C++ 6.9
I am looking for a software that can help me debug the crash but does not cost so much (like bound checker (from Compuware) that costs 3000 EURO.
I use few C++ libraries that are heavily templated.
I would like to bind them to scripting engines (like Python or Lua).
How should i manage the binding of templates Classes / Methods ?
Hi experts,
I am developing my application on Windows Mobile, and memory is scarce in this platform.
My question is, whenever I 'new' something, such as
m_pTmpBuffer = new BYTE[SIZ...
I am writing a polynomial class and will use a COW behavior. I am using a map to store the coeficcients and power pair. And I am using overloading to implement +=, -= , +, - , etc.. I am curre...
How do I make SNMP over UDP?
I m tryin this in GPRS modem it has TCP/IP and UDP
Thank you
Regards
Raj
I am looking for recommendations for a good twain component that can be easily be added to my C++ application.
Please help me resolve the following error
std::_Container_base_secure::_Orphan_all(void)const " (?_Orphan_all@_Container_base_secure@std@@QBEXXZ) already defined in MST.lib
what are the a...
In a class, I defined a couple of macros, this works if I use them in source files of the same lib. But when I include the header file in another lib that staticly links to this one, it compla...
What is static class? Explain the situation where I must it.
Hi,
I am using dev partner tool for detecting memory leaks in my C++ application. I am doing this analysis in debug build and tool is showing the memory.
My question is that if tool is...
I can't seem to figure out the syntax to define I constant array with constant content.
I want some data to be visible both in and outside of my Cuda environment, and for that to work, they...
I want to get dubuggibg tips step by step using .pdb file.Please give me the steps.
Thanks
I want to draw a string in a transparent window...
The effect I want is a String with a fully transparent background (Even its window) that floating over the other window.
Have an Idea?
I have a very tricky threading issue and I think I've narrowed it down:
My program creates a thread to query a database for information. If the database contains records that match, separa...
I want to put an Iterator at the middle of my vector so far it looks like it:
std::vector<int> myVector (MyArray, MyArray+ length);
std::vector<int>::iterator myIt;
// some code..
then...
Hi,
I need some example code to determine if a pin on a serial port is being driven high or low, I am using a piece of external hardware. I dont mind adjusting the harware to read whichever p...
I'm having trouble with c++ programming. When would you prefer a switch over an if statement?