Time for your 3rd Quarter Update! Are you in the running for the 6th Annual Expert Awards? Click the link to find out.

Third Quarter Hot Shots
 

Having problems asking a question? Have a general question about Experts Exchange? Let us know!

 
Top C++ Solutions: 151 - 175 of 384
 
I am trying to work on C++ here. I had a string value of both "-2000.00" and "20nn". I need to convert this 2 string into double. By right, "20ab" should not be converted as it is a not valid ...
I have a slight problem that one of the members of my constructor's initializer list uses the output from a member function that in return requires another member to be initialized. The fun...
Hi, I'm trying to code a program that take in a string and break the string into words. Then, insert the words into a vector<string>. Output: Enter words: apple orange pear apple - ...
is such thing possible? if yes it would be very efficient...
Existing code uses const in getDBPassword function to get password from an ini file.  I need to decrypt that password value but because the existing code uses const the value never changes.   ...
how can I iterate backwards?
Hi, I'm trying to sum up a number of amounts from a file, but I can't get it to work! I get an error saying "invalid indirection". Can someone please tell me where I'v gone wrong and what I sh...
Hello, I have the function shown below and I'm calling it as: std::vector<BYTE> aDataStream;   //Lots of data in here. unsigned char versionFound=0; safeCopyVectorToMemory(aDataStream,...
Hi Experts, I have a vector<UINT> m_MyINTS - I'd like to call find on this vector to see if, say, the number 3 is in it.  How do I do this? Thanks!
I've tried Googling this but only seem to come up with basic tutorials on classes. I'm having difficulty comprehending what the purpose of the code on lines 2, 3 and 4 of the sample code be...
HI All, I am writing a tool for converting the bmp image to a DICOM image. I am using tools like MergePixelData.exe, xml2dcm.exe and dcm2xml.exe. I have a template xml file that has the nec...
Dear experts, I'm looking for free documentation clearly explaining how to write multi-threaded programs in C++ for Unix (especially HP-UX) BR
I'm newish to c++ and I'm having some confusion about how the 'or'/'||' operator works more specifically in the if statement I use an or operator so that if nameofgame isn't "Go" or "go" the ...
How can I do: #ifndef TEST && TEST1 is this possible?
Hi there! this error occurs when switching from MS VS2003 to MS VS 2008. The code was absolutly compile clean using MS VS2003, used since years. So what happens is that "ox << xdream::F...
Hello experts,   I am programming in C++. I have a question the vector container of the STL. Have a look at the code below.   Why is the size of the structure line 24 bytes? I know ther...
Hi Experts, I now know how to find an item in my vector, but how do I get the index it was found at?
Hi, I am trying to create a wrapper for an array of pointers and have the [] operator overloaded so that I can assign something like arr[i] = somePointer. However, I get an error saying someth...
Hi, experts, I need to generate TIFF pages from Office documents, and I need to do it in Linux, using an open-source project. Could you give me any leads? Thank you.
Hi all, I would like to know how would I input the IF statement in C++ for the following: IF Premium service then: $25.00 plus: for calls made from 6:00am to 6:00pm, the first 75 minute...
I've got some code that compiles and runs fine when I use g++ -Wall -g main.cpp -o main. However when I use my IDE to build it, I get an "ld: duplicate symbol" error. The error relates t...
Hello Experts, I'm curious to find out what your suggestions are as to what best practices you would suggest in terms of application error messages ? Do you just dump them all in one hea...
Hello, I have the following code, fairly simple, yet the messagebox makes it seem as though myString isn't null terminated - it contains the correct character, but rubbish straight after. I...
I have this coding.. Each planet is given a unique ID.. Unique ID that increments in double, (1/2/4/8/16/32/64/128/256/512/1024/2048/etc/etc) For example: //In initalization of each planet ...
Hello, The code below works, but is the line at the point of interest safe? Thanks, Uni