0
xpi0t0s's Avatar, Join Date: Aug 2004
Mentor
Doesn't work that way. You learn programming by programming, not by reading someone else's code.
Otherwise your course would consist of "here, read this completed sample", "here, read this other completed sample" and so on, but they give you these assignments because doing them yourself is the way you learn.

Plus if we give you the answer this doesn't highlight the fact that you're stuck at this early stage. Probably you just need stuff explaining more clearly. Programming assignments get harder as you go on, so if we just give you the code we create a dependency cycle that is increasingly hard to get out of and your best bet is to solve this one yourself, with our help if necessary, because that will give you the skills to solve the next one.
0
telfer's Avatar
Go4Expert Member
thanks for your advice

I will try to solve it.