however, it doesn't work or I can't code it just right. Thanks for any help.
_______________________________________________________________________________
If this is the loop your trying to figure out. Then I believe the reason it isn't working is because you are initiating response to 0, which will not execute the loop because your testing if response > 0 which it isn't.
You could solve this by simply editing your response start....
This solution will only work however if your input is greater than zero. If you want to include zero in the ratings you will have to change your test to response >= 0.
This should solve your problem. Also if you want to make it like your other for loops and increment rather than decrement you could do this
1 2 3 4 5 6 7 8 9
//void stars(int response)
//{
//for( int i = 0; i < response; i++) // cout first line of *
// {
// cout << '*';
// }
// cout << endl;
// return;
//}
All depends on what you like =]
Hope you found this helpful if not sorry I've only been coding in C++ for about 6 months now
Thank you for your insight, however what i really need this application to do at this time is...for every rating the user inputs, I should get an asterisk in the frequency field indicating that entry
for example, if I enter a rating of 5 three times and 8 twice it should look like this on the output. The remainder should only indicate the amount of individual entries made.