question on my definition
im trying to complete my getData definition while avoiding an infinate loop
my error right now is that
error C4716: 'getData' : must return a value
i think i need an if statement? can someone show me an example or something?
Re: question on my definition
The error means that it should return a value but doesn't. The statement you need is "return <something>;" (not literally, of course, you have to replace <something> with something appropriate).
getData calls itself, is that really what you want (recursion)? Recursion is not the same as returning to the top of the function. What do you want getData to do, and how do you want it to use the choice parameter?
|All times are GMT +5.5. The time now is 14:18.|