I need to add a for loop, struct, and array to this
Not enough information.
A for loop to do what?
A struct to store what?
An array to store what?
PLEASE USE CODE TAGS (the <> formatting button) when posting code.
It makes it easier to read your code and also easier to respond to your post. http://www.cplusplus.com/articles/jEywvCM9/
Hint: You can edit your post, highlight your code and press the <> formatting button.
The formatting is slightly better. But your question isn't. If you're having a specific problem that can be answered with a programming answer, asking that will get you better results- just posting:
Here's my math homework
13x^2 + 3y = 15
solve for Y.
Won't get you too many results, does that make sense?