Description:
study group for beginners to learn c
|
|
|
How to perform a sort based on my own comparison?
|
| |
I have used this feature in other programming languages, such as Java and Perl but not in C++. I have a basic struct which contains an amount and a date. Then I have an aggregate (should I use a list or a vector?) of the basic struct. I need to sort the {list, vector} based on one of the above mentioned... more »
|
|
Finding an int key less than or equal to
|
| |
For a map of int, is it possible to use an STL algorithm to find a key that is less than or equal to a value, that itself may be absent? If not, no need to provide code: can write the loop myself.
|
|
sliver jewelry,fashion jewelry,cheap brand jewelry,fancy jewelry,men jewelry,women and girls jewelry,Dior jewelry,alloy jewelry,Juicy jewelry,wholesale jewelry
|
| |
We are specialized in wholesaling all series of ladies jewelry,sport shoes ect and apparel accessories. We offer you unbelievable quality for only one-tenth the usual price. There is no risk of paypal payment. Brand like chanel,d&g,juicy,dior,tiffany, bagril,lv,prada etc. [link]
|
|
The best way to use std::auto_ptr...
|
| |
I have a program that declares an outo-pointer in the header file, and then instantiate the pointer in the code file. What are the bi.e. tester.hpp ~~~~~~~ // My Class ...//STD ... class Tester { public: Tester(); ~Tester(); private: PulldownMenu* pdm;... more »
|
|
Modular Programming
|
| |
Hello kids! I am ondering if someone here knows of a place on the Internet where I can learn about Modular Programming using C++. I am developing a C++ application that I want to deploy under the FSF paradigm and under the GNU licence. However, the application will be introduced in the form of Modules, thus the question, is there an URL... more »
|
|
Language problem with properties ?!?
|
| |
Hello, I have the following code SomeArray[SomeIndex].SomeField := 5; I would like to do special processing when SomeField gets assigned. However I would also need the index parameter to know what needs to be assigned. Currently with properties this is problematic. I could only use an "access" specifier which returns a Trecord for... more »
|
|
overloading the operator() for reference objects
|
| |
Hi, Could someone please explain how I can user the overloaded operator() for reference objects. I can do it for non-reference objects e.g. This works: MyClass MyNonRef; MyNonRef(arg1, arg2); // works But: MyClass* MyNonRef = new MyClass; MyNonRef(arg1, arg2); // doesn't work MyNonRef->operator()(arg1, arg2); // works!... more »
|
|
Project Advice, Please
|
| |
* Kris: ...What's wrong with your current solution? It sounds like it's ideal. With just a little tweaking it will even support accessing and updating your data from Anywhere(TM). Cheers, - Alf
|
|
Iterators in reverse direction?
|
| |
I need to have the option of outputting the data contained in a list in a forward or in reverse fashion. The forward iteration is easy enough: for (list<string>::iterator itr = mylist.begin(); itr != mylist.end(); itr++) I naively tried to reverse it like this: for (list<string>::iterator itr = mylist.end(); itr != mylist.begin();... more »
|
|
|