Oh sorry i was kinda busy with work, oh just coming backs making rethink what i did.
Okay well what i was trying to do was:
1 Create something from a private object
2 assigns new memory, to the new object (then delete only when a true condition is met)
3 Display if the body part is missing(or some feedback display)
4 And call a constructor with default settings that can be copied but having problems with 2
( The default constructor i wrote in to see if i can compare it via true or false condition, sadly the test body part condition kept failing as if newHead had 2-4 bytes resulting in true, rather newHead equaling 5, that should bring back false, but i think creating memory will not allow me to set a condition on new memory type; well for me any hows.
In the main i had to declare something.
1 2 3 4 5 6 7 8 9 10 11 12 13
|
#include <iostream>
int main()
{
int x;
x = 7;
int y;
std::cout << 42 << '\n';
int z;
std::cout << z;
return 0;
}
|
Sorry but i don't understand what that has to do with the code listed above? ^(^-^)
1 2 3 4 5 6 7 8 9 10 11 12
|
You mean i'm doing this?
Character Component_One;
Component_One.store_bodyParts(0);
Character Component_Two;
Component_Two.test_bodyParts(0);
Character Component_Three;
Component_Three.display_body_Parts();
|