virtual fun ambiguous call?Noah 1 133 I always thought that f(type0) and f(type1) would resolve to different
function calls when the two parameter types are unrelated. I've run
into a...
segmentation fault due to comparison functionrhfcwjm 3 110 Hello All,
In order to be able to sort instances according to a certain criterion
I have created a struct in C++.
E.g, in my .hh file I defined t...
Algorithmic vs design complexityvattilah-groups 0 131 Hi all,
In my field of work I am often faced with algorithms where the
traversal of one data structure (or series) involves the traversal of
a se...
delete[] p or delete[] *pPaul 23 132 Hi,
Suppose I have the following code:
int (*p)[5] = (int (*)[5])new int[5];
How do I delete the allocated memory?
Is it:
a) delete[] p;
b) ...
===Welcome to comp.lang.c++! Read this first.Shiva 0 125 Welcome to comp.lang.c++! Read this first.
This post is intended to give the new reader an introduction to reading
and posting in this newsgroup. ...
Null Pointer testingRuben 13 99 Since there is implementation's and hardware where the return for a null
pointer is not guaranteed to be zero, I take it that the syntax if(!ptr)
...
Why re-declaration is legal in C++?Universe 6 127 Hello, everyone.
I found the same class declaration can be used more than once in the
same namespace.
For example, there is a C++ file which contai...
return references from templatesRuben 12 93 I have a snippet of code that looks like this
template
NODE * const &LIST::find(const unk& search) const {
NODE * index;
if(_at_front == NULL)...