User profile: Ralph83

User info
User name:Ralph83
Bio:I'm a mathematician and working as a professional software developer using C++.
History
Joined:
Number of posts:19
Latest posts:

How to Balance a Binary Search Tree?
See "http://en.wikipedia.org/wiki/Balanced_tree" and references there. The wikipedia site on the red...

Linked Lists
This should do: [code] void DeleteFirst(Node*& headptr) { // save pointer to first node for delet...

Friends letting me down
There's another, rather complicated way, so that you only use member functions. I renamed c1 as X an...

Friends letting me down
Just turn the member function c1::func() into a non-member function func(c1&). If you need access to...

Isolating words in a string
This code should do it with getline. [code] #include <iostream> #include <string> #include <strstre...