| dabbertorres (12) | |||||||
|
I believe what I am trying to do is called a "Member Initialization List", but I can't seem to implement it correctly. I'm using Code::Blocks 10.05 with g++ 4.7.2 on Linux. I have two classes, A and B. A contains members of B. Each class has a *.h and a *.cpp file. I've included what I believe to be relevant: A's *.h
A's *.cpp
When I try to build, I get syntax complaints:
Does anyone have an idea of where I may be going wrong? If more info is needed, I'll be happy to provide. Thank you. | |||||||
|
|
|||||||
| helios (10258) | |
A::A() : one(0), two(1)
| |
|
|
|
| dabbertorres (12) | |
| Oh you're kidding. I could've sworn I tried that. Oh well. Thanks. | |
|
|
|