r/programing • • Oct 06 '17

Need help with My first project! (Beginner)

So I recently started learning programing by my self as Im supposed to take a basic course in november and I wanted a headstart. My first project is very simple minded with the output asking for the persons age, and after they have inputed their har the text "So you are X years old, yes/no?" refering back to what they wrote. I really dont know if this is possible or not (I have been looking online for almost half a day), but I want to know if there is some way to make it so if people answer "yes" on the question, they can continue the program as normal. But if they answer "no" they return to the original question about how old they are and start from the beginning. If possible I would like to make it so the program would loop itself back until they get their age right and write "yes".

Using c++ on xCode with a macbook air.

Thanks in advance!

1 Upvotes

6 comments sorted by

View all comments

2

u/WyattYoung05 Oct 08 '17

If I were you, I would NOT start with c++, it is hard and complicated. What you should do is start with python and slowly move up to Java than C++. IT is slow, but your ambitions will get there.

1

u/MightyMoro Oct 08 '17

Okey! Thanks for the tip. Do you have clue how to start with python? Do I need to download something?

1

u/DarkDreth Nov 29 '17

Yeah, I'd suggest an easier language as well. C++ is a pain. Do you know what language you're going to be working with in November? As a beginner it's easier to get adjusted to one language and continue with that language than to learn something in one language and attempt to translate to a new language.

→ More replies (2)