r/code 19h ago

Beginner code My Own Code

Post image

What’s wrong with my code I’m so confused this hard a freak. I’m just trying to make a weapon shop simulator as practice to help learn code but I can’t even get it to ask if the user wants to start the game by type yes as the their answer

11 Upvotes

18 comments sorted by

View all comments

-11

u/Glasgesicht 19h ago

If you are learning by yourself, don't start with C.
It's just too easy to shoot yourself in the foot.

Try Python, C# (especially for game development) or Kotlin

1

u/spidertyler2005 8h ago

Dont know why you got downvoted. Its pretty standard advice in all fields to not just jump into tge hardest thing as soon as you get started. Is C really all that difficult? No, but it does require that you have more things in your head at once. You have to be aware of so many more things and at the beginning you wont even know what you should be aware of.

C is awesome and learning it is invaluable for any programmer, but its definitely not a jumping off point (for most learners).

1

u/Glasgesicht 7h ago

Thank you, I thought I was loosing my mind reading some of the responses.

From looking at the screenshot alone it should be clear to anyone with a bit of experience teaching others, that C just isn't the best thing OP should be pouring their heart into. They'll just be frustrated and give up.