Hi,
How do you make use of nested functions in C++? I realize in C++ that
everything must be declared first in a header file before implementation in
a .cpp file. I tried to nest a method prototype in another prototype but
seems pointless. Can someone please write a short, simple, and concise
skeleton code of how to use nested functions?
class Foo
{
private:
int a;
int b;
public:
void funcA();
void funcB(); // seems pointless
}
void Foo:: funcA()
{
this->funcB;
void Foo::funcB()
{...}
}
//error: local method problem
any help appreciated.
Regards
reuytrt
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.518 / Virus Database: 316 - Release Date: 11/09/2003