Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 24 Oct 2012
Offline Last Active Dec 19 2012 06:47 PM

#4995763 Create a Game Engine

Posted by mic_k on 31 October 2012 - 03:42 AM

hi, i think it's a matter of choice.
starting from the very bottom, or direct to the high-tech, depend on our own characteristic and purpose.

some want to write game and implement/sell the result soon as possible.
or, perhaps some want to experience just the game production-cycle, not into detail.
and, maybe some want to learn programming tech, or hobby in the graph-design process.

what the best suit me, so must search, listen & try/learn it.. after experience it what next to do.. i think so..

have fun in development

#4995758 C++ Function Parameter

Posted by mic_k on 31 October 2012 - 03:15 AM

yes, i also read about that too, use the by-val parameter for built-in types data, use the const-ref for class type data or large list/collection.

and additionally, a consideration when there are needs to copy that function param into local(of function block) variable, some suggested to provide the function with by-value param type.

that give me perspective now, thank you stroppy.

#4995714 C++ Function Parameter

Posted by mic_k on 31 October 2012 - 12:11 AM

i'm currently in practice with c++, i found a situation(not critical).

as i read from tutorial & article, it said that good thing in passing argument by reference, but not to change the value inside the function, is to use the constant-references as the function parameter.

in situation that i just want to pass the argument to a function just for resource only, not to change the value itself,
1. so when is the right time to use the by-value parameter ?
2. when is the time not to use the constant-references parameter ?

may anyone have suggestion..

thank you,
happy coding Posted Image