Tip Bank

DevX

Reference Counted Implementation

Question: For a reference counted implementation, how is the operator+= member function coded? The function receives (const String & rhs) and returns String &. The returned String &

DevX

Friend class and function

Question: I need to know what the class or function called “friend” is. My teacher explained it in class, but I don’t quite understand how to call it and declare

DevX

Inheritance and parameter pushing

Question: Why do I need private inheritance in C++?Is it true that (in C++) function parameters are pushed onto the stack from right to left? If so, why? Answer: Use

DevX

VC++ 5.0 and STL predicates

Question: How can I provide my own predicate for the list::sort method in Visual C++ 5.0? The method appears to require that any function object passed must be derived from

DevX

Using self-defined libraries

Question: I am using Borland Turbo C++ 3.1 and I can’t figureout how to use my self-defined libraries. I’ve used”#include” but I get an error every time I try touse

DevX

Compilation Warning

Question: I got a warning when I compiled my C++ program onHP-UX:Line 219: Warning: Namespace is a future reserved keyword (215).What does this mean? Answer: It means exactly what it

DevX

reading input field numbers

Question:   Answer: JavaScript can be used to access values in web form input fields. This is possible because JavaScript treats input fields as objects with several properties. One of

DevX

Persistent Cookies with JavaScript

Question: How can I write a cookie in one page and then read that cookie in another? or alternatively pass data gathered in one page (not a remote!) and then