#I'm new to c++

123 messages · Page 1 of 1 (latest)

swift nebula
#

I need to know, how hard is c++, and what are the skills I need for standard c++ applications?

split quiverBOT
#

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.

mild tartan
#

C++ is considered complex as compared to other languages out there but i believe nothing is hard if you put your mind on it, as for the second question i don't know what standard c++ application is but the skills you need to create command line applications is problem solving and c++ itself with decent knowledge on how to use compiler and debugger.

#

For applications with graphical user interface you'll have to learn a Gui framework of which Qt is one example.

vital plaza
swift nebula
vital plaza
#

Honestly hard to say C++ is widly huge and what you need depends on what you want to do

plush lodge
vital plaza
#

but honestly the best way to get started is just to get a good book

swift nebula
#

well that's a bad start

plush lodge
#

Floating point numbers have different representation too

vital plaza
#

most of that realy isn't to important

swift nebula
plush lodge
#

If he doesn't know C++ or programming overall then it helps

vital plaza
swift nebula
#

alright good to know

vital plaza
#

just knowing some basics is plenty for these

plush lodge
vital plaza
#

okay but like 2s complement etc basically doesn't matter

plush lodge
#

It matters when you want to understand what's happening

coral prism
#

I'd say this:
be prepared to take at least a year of practice before you get even slightly good.
Also the path from 0 to an application is especially complex in C++
mainly because you need to manually gather all sorts of ingredients

plush lodge
#

difference between unsigned and signed, and why they have different number limits, what's a good data type to store numbers you want etc.

swift nebula
vital plaza
plush lodge
#

I mean say what you want, that's my stance no matter what, you aren't wrong but he should know these

coral prism
swift nebula
plush lodge
#

Here you will have to think about these things

#

You will see I guess

#

But sure that 1 year experience will help immensly

vital plaza
#

honestly python is more strongly typed then C++ 🤷

open wigeon
#

C++ is 30 hard.

swift nebula
#

I have no idea what's going on, but I'm glad it's less toxic than the python community

#

well I think that's all I need to know

#

or do we keep this going?

vital plaza
#

honesdtly the most important thing I can say for C++ is get an good book

swift nebula
coral prism
plush lodge
vital plaza
#

murachs C++ is supposidly pretty good

swift nebula
#

yippee, I'll take notes

split quiverBOT
#
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.

swift nebula
#

I have visual studio setup already

plush lodge
swift nebula
#

and I think I'm already gaining carpal tunnel .

swift nebula
plush lodge
#

Visual Studio Code will be harder to set up for you

#

nice

swift nebula
plush lodge
#

VS Community has everything basic set up for you

#

debugger is built in with GUI and keyboard shortcuts

#

managing project files is built in

swift nebula
#

well how nice ain't it

plush lodge
#

for linking libraries you have GUI

#

Basically whatever you would need, like tests for your functions can be set up.
Block-tree showing how your code functions connect to each other.
Profiler to check what's performant and what not

#

many useful things

swift nebula
#

so I did make the good choice

#

not setting up c++ on fleet that was stupid

plush lodge
#

best choice out there for a beginner right now, other good choice is CLion from what I've heard

#

but I've nver used it so I can't really say

swift nebula
plush lodge
#

On Windows Visual Studio IDE (Community, Enterprise etc.) is king

open wigeon
#

best advice: actually take the time to learn the fundamentals. even though they seem really annoying and tedious.

plush lodge
swift nebula
swift nebula
plush lodge
swift nebula
#

right?

swift nebula
plush lodge
plush lodge
# swift nebula be specific...

Understanding pointers for once, data conversions (very important, you can have data loss if you don't do it correctly)

swift nebula
#

Canada is intresting

plush lodge
#

Some data conversions look simple but aren't

swift nebula
open wigeon
plush lodge
#

Understanding scopes is important, so you don't create bug by simple overshadowing names

swift nebula
plush lodge
#

Understanding what keyword static does to variables

swift nebula
swift nebula
#

I always wondered

swift nebula
open wigeon
#

make the compiler work for you. -Wall -Wextra -Werror and fix everything!

plush lodge
# swift nebula so what does that do?

If you declare it in the header file and split your code in few source files, and each of these source files includes this header, then this variable might just be declared multiple times for these source files. It will be bunch of different variables

#

rather than being one that you refer to

#

It can happen, doesn't have to but one should use when actually needed

vital plaza
#

static realy isn't that important for beginners

#

you rarely need it anyhow

swift nebula
swift nebula
#

but in MOST cases it just means a variable has static lifetime meaning it persist through the program in heap memory

#

actually not heap i shouldnt say heap

plush lodge
swift nebula
#

2nd place is windows server 2025

proud osprey
#

Just go through a course, such course will present to you all the knowledge you need to know.

open wigeon
#

then /W4 etc

swift nebula
#

this makes me realize how unfamiliar I am with the terminal

#

dev-cpp WAS a mistake I see..

plush lodge
#

devcpp IDE? man.. yeah it's old as hell

open wigeon
plush lodge
#

Isn't it using old Borland compiler?

vital plaza
open wigeon
#

yeah; it's close to a -pedantic but i find /W3 is missing lots of important warnings.

swift nebula
vital plaza
swift nebula
#

I'll come back to this tomorrow, give some ideas while I'm gone

plush lodge
open wigeon
open wigeon
plush lodge
#

You guys know that you guys aren't in #1013107104678162544 or #c-cpp-discussion right? kekw

#

Just saying, kinda bloat to the thread

swift nebula
#

!solved