How can I learn C ++ "fun"?

All the tutorials I found are boring, and I need a “fun” way to learn C ++. Does anyone know any “funny” ways?

+4
source share
5 answers

The “funniest” way is to try to solve the problem you want to solve. If you want to learn how to program because you want to program games, then start programming games - maybe just simple adventure games, but games. If you are involved in programming because you love math, try writing calculators. If you like networking, try writing a chat service.

Programming is more fun when you work on problems you want to solve.

+9
source

Do you have big dreams? Do you want fame? Well, the glory is worth it. And right here where you start to pay ... in a sweat.

If you want to have fun, consider other languages, C ++ is a way of pain with some obstacles. This reward is the same as a visit to the gym: at the end of the day you feel great for what you did, the problems that you overcame, what you can do now that you could not before training, but I would not call it fun.

And again, I love the language, so do not take it as discouragement. To make it easier, I would start combining simple problems that you know how to solve from an algorithmic point of view and see how this is displayed in the language. Check out SO for C ++ questions, you can learn a lot about common traps this way. Each of them often fits into the frequently asked questions on C ++ or selects one article from Guru of the Week in a specific order. Do not expect to understand all this, just to get some ideas, some feelings.

+7
source

One of the most interesting ways is to find a tutorial that works the way you like. As a rule, creating educational fun is a big form of art, the guys at http://www.3dbuzz.com make a C ++ course, which is fun (well, at least this is for most people I know)

0
source

I would start with a simple Tic Tac Toe program. Not only is this fun, but it is a bit trickier (assuming you do it human vs. CPU).

This program can really become very complicated, for example: you allow the computer to analyze all the possible steps before the start of the game. This will mean that it will move from better to worse. Then, when the player puts his X in the square, the CPU will choose the best available move. If you do it right, the CPU must be unsurpassed (but not interrupted).

0
source

Whenever I'm on a new platform or trying to learn a new technology, I almost always give up trying to write a game with it. The vision is simple enough to explain at the beginning (“We're going to make a guessing game”) so that you understand where you are going. What's more, this is a game, so the expectation of having something fun as a final product is a good motivator for most people. Poker, Mastermind, Craps, Blackjack, Yahtzee, Set ... the list goes on!

0
source

Source: https://habr.com/ru/post/1346321/


All Articles