My c++ code is to read from binary file and do some simple arthimatics and write the result to another binary file. There are no errors in the code and when I build it ,it says successful.
A...
New to C and C++, I was playing around with C++ namespaces today.
My test code was going nicely, until I started trying to write up a bit of more useful code (converting some of my C learni...
Hello,
I have the following code, strangely it compiles fine, yet if I uncomment the testMethod line the compiler complains that B is already inherited through T1. Why does it compile fine ...
What design pattern is used to implement a redo/undo function? Explain how and why?
How would u explain this so the user can understand this.
Hi
I have a array containing 100 numbers (0-99). I have made a function that randomly puts in a number of bombs, marked with a "B" in the array and calculate the numbers around the bombs. T...
i try to write this code to convdert from string to char
why it doesn't work
I have no idea why this doesn't work. Any clues? The output I get is:
falmarri@fal-kubuntu:~/Dropbox/Programs/logic/build$ ./src/main intput.txt something else output.txt
filein = intput.t...
I have an assignment that investigates multiple inheritance. I have to manually change a data member of an object's supertype.
how i could divide a string in my code accourding to character
in Java we use a string tokinizer function
Suppose my string
//my name is Joseph
I want to divide it according to space ch...
Pointers have always confused me. What's the difference between
MyClass::Method1(const MyClass& rhs)
and
MyClass::Method1(const MyClass &rhs)
I'm just learning about operator o...
Hello I am trying to convert an argv[i] element to a string.
Argv[1] should have the name of the text file name I will load. I am passing argv to my function setPlaintextfile with the follo...
Dear experts,
We are writing a C++ module in HP-UX. However, the module should be run as a single instance such that before running it should check that it is not already running. We need t...
Hi,
I'm just looking for some general opinions on how you organise code when working with different versions. For example, assume I have a class which parses some data, later on this data c...
I'm a C++ newbie having a few issues trying to create a wrapper class around Berkeley XML DB.
I am currently having issues putting a wrapper around the environment close function.
My tes...
Is it possible to convert source code from C++ to Visual Basic?
The code doesn't need to be 100% functional after conversion (though it would be nice!), however it should at least be close ...
Why do I get this error:
48: error: âmyFileâ was not declared in this scope
on the following line:
myFile << file->getComment().getCommentText( )+ "\n";
Hie,
That code does not compile, why?
Does map on reference or object is possible?
I don't want to use pointers. ( I refactored all my code to eliminate pointers and use references :-( )
...
In what I have so far the user is prompted to select a number to remove from the heap. I believe that this is working just fine now. In order to do that I percolate the item up to the root a...
I have a VB6 application I am trying to replace with MSVC++6. It is an ActiveX exe to load wrapper objects on seperate threads. The wrappers contain classes that implement a certain interfac...
Hello,
I am trying to write a multithreaded application in unmanaged C++ . I want thread_1 to capture the network packets and the other thread_2 to process them. (I am using Winpcap)
W...
Is there an operation on vectors that pulls an element out of the middle of a vector and moves everything down? I know I could implement this no problem, I'm just wondering if there's an opera...
I have a c++ code that loads a library dynamically and then make function calls into it using function pointers.
It all works fine if I call the library Init() function and the GenerateKeys...
Hi, just learning c++ now and this is probably something really easy to figure out but I just can't seem to find a reason.
I have a class with a few methods, all works fine and I can call a...
I know the easy answer to the question is "use if", but surely the following is achievable with switch ?
I need an improvement to the getMemberListSize methods using shift opration etc...