Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualLarsDC

Posted 02 September 2012 - 09:12 AM

Thanks for the response Posted Image

I had a feeling a month of c++ wouldn't get it in place so it's nice to get some feedback. At least I know I need to practice some more and read a bit more also.
I did know that if you cout a pointer you'll get the memory address and not the variable value itself hence them always being integers, if that is what you meant.

Still much appreciate the response.

Regarding the member variable.

I think I kinda switched around local and member didn't I?

Local being class visible and member being function specific.

Again much appreciated! Posted Image

#2LarsDC

Posted 02 September 2012 - 09:08 AM

Thanks for the response Posted Image

I had a feeling a month of c++ wouldn't get it in place so it's nice to get some feedback. At least I know I need to practice some more and read a bit more also.
I did know that if you cout a pointer you'll get the memory address and not the variable value itself hence them always being integers, if that is what you meant.

Still much appreciate the response.

Regarding the member variable.

Example:
int main{
void randomName(){
int a;
}
}

The first one isn't a function but a class. Sorry if that was not clear and/or wrong written.

Again much appreciated! Posted Image

#1LarsDC

Posted 02 September 2012 - 08:58 AM

Thanks for the response :)

I had a feeling a month of c++ wouldn't get it in place so it's nice to get some feedback. At least I know I need to practice some more and read a bit more also.
I did know that if you cout a pointer you'll get the memory address and not the variable value itself hence them always being integers, if that is what you meant.

Still much appreciate the response.

Regarding the member variable.

Example:
int main{
void randomName(){
int a;
}
}

The first one isn't a function but a class. Were it a function it'd be
int main(){
void randomName(){
int a;
}
}

Changes bolded out. Sorry if that was not clear and/or wrong written.

Again much appreciated! :D

PARTNERS