#how do i use member attributes as defauult values for params in a class method

17 messages · Page 1 of 1 (latest)

whole thicketBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.

last acorn
#

yes you can't do that

karmic smelt
#

why

#

how do i use that value as the default value

last acorn
karmic smelt
#

then whats a alternative

last acorn
karmic smelt
#

how

last acorn
#

what's unclear?

karmic smelt
#

i forgot abt overloading

last acorn
#

well then I'd suggest you revisit that in your book as overloading is a pretty fundamental part of C++

karmic smelt
#

i got it to work i used a overload thingy

shrewd portal
whole thicketBOT
#

@karmic smelt

Please Do Not Delete Posts!

Please don't delete forum posts. They can be helpful to refer to later and other members can learn from them. In the future you can use !solved to close a post and mark a post as solved.

karmic smelt
#

think*

#

!solved