Anyone fancy marking my work?

I read the first couple of chapters of the tutorial on this website about 5 years ago. Wrote a console program which works out the day from a date. Then didn't look at c++ or programming again... until earlier in the week.

I read over my first program and thought about trying to make another. I started simple and went for a program to score a game of "oh one" darts for up to four players.

Both programs work well but I have no idea about the quality of the code written. I know there will be easier ways of getting the results I want but I am a complete newbie to coding and have only read the beginning of the tutorial.

I would be very appreciative if someone could look at the code i've written!

Here are a couple of links to the .exe and source....

Day from date
https://docs.google.com/uc?id=0B7msvlRlndcKYTdmMGQzODUtODQyOS00YzQ1LWI0ZDItMzI0YmM4YjZjYTFi&export=download&hl=en

https://docs.google.com/uc?id=0B7msvlRlndcKOWE0ZGJkMmMtNTA2ZC00NzM3LTlhZTYtYmRhMjUwYTFjOTFi&export=download&hl=en

Darts scorer
https://docs.google.com/uc?id=0B7msvlRlndcKMmUxZGEzOWYtZGZhMi00ZDliLTgzYWEtNDIyYjBkNmZiYWZi&export=download&hl=en

https://docs.google.com/uc?id=0B7msvlRlndcKZjRmMzBkZWItZTU5Ni00N2NkLWI2YmEtMWNhYmVlNzVjMzA5&export=download&hl=en

Thankyou
Last edited on
google wrote:
Sorry, we are unable to retrieve this document.

Try using pastebin
Or pastie :3
wow, thats strange. works fine for me!

Day from date
http://pastebin.com/L2imNQYS

Darts scorer
http://pastebin.com/33gwtvcg
I hate the use of goto! It is awful! It makes a program's code hard to follow because the jumps can be huge.

I also don't appreciate the curly braces indented all the way to the left as opposed to aligned with the previous statement.

Other than that, the code looks decent. :-) I only did a quick glance, though, because of all those goto's!! I could never ever invest more than 1 minute reading code with goto's.
Topic archived. No new replies allowed.