stuck. not sure how to pass the char and int. I would love to keep it global since the program functions properly, BUT my professor highly frowns on global variables..frowning as in "it's wrong = 0;" Any ideas or help to pass the str and counter to get them out of global state?
Thank you very much! I have tried and tried with this one. Char/string recursion is quite difficult to me right now. And almost zero reference from class or book. I only use system("pause") while I'm trouble shooting code to pause it to see what the output is before it flashes away. I have never seen
[code]
#if 0
// system("pause") is bad
system("pause");
#endif
[/code
but I really like that. - Now that the coffee is wearing off and the 15 hrs of homework is kicking in, I need to review the nice code you have cleaned up.. and possible see how you are passing the input to the recursion function. (so I can cout the result of vowels.) it's either really obvious and I have a bad case of sleep deprivation, or I'm just not seeing it at all.
"Now that the coffee is wearing off and the 15 hrs of homework is kicking in, I need to review the nice code you have cleaned up.. and possible see how you are passing the input to the recursion function. (so I can cout the result of vowels.) it's either really obvious and I have a bad case of sleep deprivation, or I'm just not seeing it at all. "
WOW...complete disregard that. I am pasted tired. Again Kiana thanks SO much..you helped GREATLY !