functions must be called from main() ?

Pages: 12
closed account (E0p9LyTq)
On a side note, have you learned about structs yet? Putting all the variables you pass by reference to your functions into a structure would make your parameter lists easier to read and understand.

Just my opinion. :)
Nah I didn't learn that yet.

The program works.

What I said before are just suggestions other pointed out to make the code better.
closed account (E0p9LyTq)
The program works.

A good thing, a definite "win". :)

What I said before are just suggestions other pointed out to make the code better.

From what I see of your source, I can't see the suggestions apply any more.

I wouldn't change the original post as you've done, I'd just make a new comment with the updated code. Easier to follow what changes have been made.

Just me speaking. :)
closed account (48T7M4Gy)
The 'feedbacks' you have received are telling you that pass by reference is not required in the various function because they are not changing the values of the items being passed. You should review and revise the parameter lists. Look up "pass by value" and 'pass by reference' in the tutorial here.
Topic archived. No new replies allowed.
Pages: 12