Yeah.
Figured it out.
Cheers my friend.
D.
Type: Posts; User: dwylie
Yeah.
Figured it out.
Cheers my friend.
D.
Yep.
Just figured that out.
You need an instance of the class, to initialize the reference, but you can't get an instance of the class until you've initialised the reference.
Cool.
Cheers,
D.
Thanks elad.
Good to hear someone agree that the former option is impossible so I can just get on with the second without nagging doubts that I should be further investigating the first.
The use of...
Hi.
Pardon me if this is an obvious one...
Is there a way to get around C++'s refusal to have a class member that's an instance of the class itself...?
What I'd like is:
class MyClass {
int...
That only compiles as:
//try this:
template<class MyTypeOne>
class Aclass
{
void foo();
//code
};
Having trouble declaring a class member which is an iterator.
Problem seems to be something to do with nesting of templatisation.
Tried various experiments, and alot of googling, but to no avail.
...
When using ddd (Data Display Debugger) to debug C code, it can be used to look directly inside the contents of an array, by right-clicking on the array name and selecting "display".
In my case this...
Right ho.
I put in the code tags and I am away to start an X-session and learn by experimentation
D.
Hi, this is my first post.
It concerns the scope of a loop control counter object declared inside the for statement...
Here is an example:
{
statement;
...