Description:
The object-oriented C++ language.
|
|
|
Needed features in upcoming standards
|
| |
Greetings, I am a long-time C programmer (close to 30 years) with very little C++ experience. I don't keep up with the standards process but there are two features that I've long thought needed. It might be that C++ already has these features or that the upcoming standards for C or C++ have these features. I suppose I'm just asking and if they are not... more »
|
|
Inheritance question
|
| |
class A { public: char String[20]; ...class B : public A { public: char String[20]; ...class C : public B { public: char String[20]; ...void Test() { A a,*ap; B b; C c; strcpy(a.String,"Adios"); strcpy(b.String,"ByeBye"); strcpy(c.String,"Ciao"); printf("%sn",a.String); // prints 'Adios' -> OK... more »
|
|
C++ hard question
|
| |
If I can not be anywhere I like then I will not be anywhere I am put in Enjoy!
|
|
Thuy Nga Paris by night Hung and Ha
|
| |
This is a story about a Chinese Vietnamese living in the US with his wife named Hoang Linh and a woman named Ha living in Japan who already has a son: a moving external triangle everyone is very moved to read about. Tran Hung's second wife's name is Ha. She mainly works as his private secretary whenever he arrives in Japan for 'business'. She is his... more »
|
|
Explicit template instantiaion and linkage errors
|
| |
I am getting linkage errors building a class with method templates. The class looks like this: class A { public: A(); ~A(); template <typename T> long foo(T& val, string& key) const ; private: class B { /* Heavy object that manages internals of A */ }; ...The implemntation of template function foo<T>, uses class A::B - Class... more »
|
|
template help
|
| |
My goal is to make maps where the key is a string name and the value is a pair of data, one being a value, and one being a bool telling me whether that value has been initialized to something meaningful. How do I change these existing maps to take the AttributeValue struct in the private section with T being a specific data type?... more »
|
|
accuracy when comparing doubles
|
| |
I am writing image processing code for a university project. When I work with numbers (doubles), is it safe to assume that; a) simple arithmetic is accurate to 15 decimal places, always b) boolean comparisons will be accurate with doubles (up to 15 decimal places) ? If not, I'll have to scrap all of my c++ (!!) or use GMP.. and both... more »
|
|
OO wrapper for SQL where clause like Roguewave
|
| |
Roguewave makes a well known C++ wrapper for SQL. For example to ...// C++ code int videoID = 1234; std::string lastName = "Miller"; RWDBTable purchases = myDbase.table("purchase"); RWDBDeleter deleter = purchases.deleter(); deleter.where(purchases["video ID"] == videoID && purchases["last_name"] ==lastName);... more »
|
|
|