I know this is a kind of broad question, but I have been having a hard time in general knowing when to put what call parameters into what functions. Does anybody have any good tips on when to know when to use a void function verses a bool or int or other type of function. Also how to know what to call into the Function?
Well, you bring up to different topics really when mention both parameters and the "void function verses....", which would indicate return type.
Return type really depends on what you want. If it makes sense that your function should return an integer, then you would make it an int myFunc() declaration.
Parameters also depend on type, but if you pass by address/reference, then they can also return a changed value via the parameter...hmmmm...
So, when should I use a parameter verses a return value...hmmm...
Well, when you pass in a parameter, you might expect the contents of a parameter to be modified, or even allocated and then assigned. However, you can do the same thing with the return value of a function....hmmmm...
I think it just boils down to user preference and adhering to coding practices already in place for consistency--for the most part. But, you really can achieve similar/same results doing it either way except that you can only return one item, but you can pass several as parameters....
At this point, I will let someone else take over the conversation because someone will certainly have something more to add...so, stay tuned...