For one thing you should put prototypes of the functions above main or just place the functions above main otherwise you'll get errors from that. You also set up getCities and getChoice to take no...
Type: Posts; User: Fandango21
For one thing you should put prototypes of the functions above main or just place the functions above main otherwise you'll get errors from that. You also set up getCities and getChoice to take no...
No problem. I'm still learning C++ myself, and coding in general, but glad I could help.
Here's your code I modified that you can look at and kind of see with better indentations,working while loop and such. Let me know if you have any questions about the changes.
#include...
endwhile is not declared or initialized. Maybe you meant that as a comment to show where the while statements end but it needs // in front if that is the case or just delete them entirely. You also...
Thanks Andrew. That's what I just modified the highestBalance function to do. It returns the index and now I can use that outside to print what I needed. Thanks everyone for the help!
Thanks for mentioning the constant references, I forgot and they will definitely help avoid future confusion and bugs. I found my off by one error only like 10 minutes ago. Wish I would have...
I'd love to use vectors and all but the teacher wants an array. It seems much simpler what you've written and makes sense but I have to stick to basically the format with the functions and array that...
Hey everyone. Got a question again that I've been racking my brain on trying to fix it and I haven't been able to yet. The program listed below has to do most of what the functions I have set say...
Anyone who could give me advice on this, I would greatly appreciate it. I've spent most of my day searching for something that made sense and found a few things but I'm totally stuck at this point. I...
Hello. I need some help with a program I'm writing. It needs to define a function named menu that returns a char and does not accept parameters. Any help is appreciated.
Currently I have this...
You're welcome. I was doing the same thing like 2 weeks ago :cool:
Yep.
What you're doing here is just listing the steps. Step one, Have the user input value for integer, step 2, double the integer. The idea is that you know how to break down the task into steps. You...