Description:
The object-oriented C++ language.
|
|
|
Selection of overloaded function
|
| |
What does the standard say about which overloaded function to match in this situation: (Assume classes A and B are defined, and there is an overloaded operator defined const A& operator = (const void *); class Base { public: A a; B b; virtual void fun( A a& ); virtual void fun( B *b, int i=0 );... more »
|
|
Zero-length array under the hood? How does it work?
|
| |
Hi, I understand that you can actually create object with zero length array. Like example below: struct Weirdness { int i; Weirdness() : i(10) {std::cout << "im here" << std::endl;} ...Weirdness* testing = new Weirdness[0]; My understanding is that new operator actually creates a new object of... more »
|
|
Has thought been given given to a cleaned up C? Possibly called C+.
|
| |
"io_x" <a...@b.c.invalid> ha scritto nel messaggio ...[post to c and c++ newsgroup] the above should be possible in C++ (pheraps using instead "%4.4f"). don't remember what is fmt, could be one "stream manipulator"? could be one class [the call to one constructor of a tmp object]? don't know. do you know it someone of you?... more »
|
|
Cast from int to char + char concatenation
|
| |
Hi everyone. I've already searched something related on internet and I've tried various solutions, but they don't work. Problem: I have a int variable and 2 char variable, and I want to merge them into a single char variable. What I'm doing now is this: int a = 3; char* b; b = (char*) a; errorLabel... more »
|
|
C++ developer vacancy in Kharkov
|
| |
Description: • Proven experience as a strong Object Oriented (C++) developer and experience with design patterns • Leverages exiting skills to quickly assimilate new technologies Desired: • Experience with Obj-C or iPhone development • Successful experience with training and mentoring others... more »
|
|
Resorting a map (copying a map to another with different Compare)
|
| |
Hi, I'd like to be able to re-sort a map (a curious aspiration perhaps). I think basically what I'd like to do is copy one map into another that uses a different Compare function. I was wondering if there was an easy way of doing this in general. Or what strategy I could use to do it? I've tried something like this:... more »
|
|
what does a constructor return
|
| |
I know what you can't define a constructor with a return value, but I thought it does return a value, and therefor so does the instances of a class object. I thought it returned a reference to the class. How is it implemented? Ruben
|
|
|