#How to learn cpp ?

18 messages · Page 1 of 1 (latest)

jaunty nest
#

I need some advices please. I did 2 years at uni of learning java and that's shit. Everyone tells me c++ is better and i want to learn it but how ? I know OOP because of java and python, i also did C during the last semester. So here's my questoin, what do you recommend I learn and how? ducky_concerned

tacit stoneBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

#
How to Learn C++ Programming

We generally recommend a good book to learn the necessary fundamentals:

To actually write and run C++ code, you will need a compiler, editor, and debugger. We strongly recommend to start out using an IDE, which will provide all these tools for you:

<:microsoft:1165512917047853127> Windows
  • [Visual Studio](#1165492293810257920 message)
  • CLion
<:tux:1165505626894520361> Linux
<:apple:1165508607798943754> Mac
Words of Advice

The wise programmer is told about the debugger and uses it.
The average programmer is told about the debugger and avoids it.
The foolish programmer is told about the debugger and laughs at it.

copper cypress
#

Mine was the opposite everyone was telling me not to do C++ as my first programming language cause it’s hard.

magic rover
jaunty nest
#

Thank you

magic rover
#

once you understand most of the essentials taught on that site, start working on some practice problems (leetcode / project euler) to start messing around with the language / stdlib / data structures / etc

copper cypress
#

Start making projects too after you understand the essentials

tacit stoneBOT
#

@jaunty nest Has your question been resolved? If so, type !solved :)

jaunty nest
#

Can I learn by making a project ?

#

I want to create a packet sniffer and people told me that c++ can be a good thing to implement that

magic rover
#

most of what you'd need to implement something like that will probably require a bit of C knowledge on top of C++ since the low level networking functionality will be implemented as platform specific C APIs (then the C++ would build the higher level functionality)

#

you can always start a bit smaller, but involving related functionality to work towards the end goal of writing a packet sniffer. as long as you have an understanding of networking at the socket level it shouldn't be too hard to do some experimenting with some of those networking APIs

#

either way you'll want to start with learning the language first though, or else it's just going to be an uphill battle to implement anything like that

jaunty nest
#

I agree with you on the idea that it’s better to learn it first or it’ll be a mess. However, what projects do you suggest me to do ? And do you think in 3 months (the end of summer) I’ll be able to do something clean with this language ?

#

Even if 3 months is a short period, I still want to learn as much as possible and be ahead of other. Plus, a friend of mine has opened a fiverr shop as a freelance c/c++ developper and landed a job writing tests ( he codes since he’s 16 and now he’s 20) and me since I’m 18 but I want to change lol. Java doesn’t interest me anymore

heady junco
#

just start and see where it takes you ^^

jaunty nest
#

You right