#I'm new to c++
123 messages · Page 1 of 1 (latest)
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.
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.
it realy depends on what you consider standard
well, basic functions of a programming language, if, while, functions etc.
Honestly hard to say C++ is widly huge and what you need depends on what you want to do
Know at least how to convert between decimals, hexadecimals, octal decimals and binary. That alone will help a lot.
Learn about binary representation of numbers in the memory like: Two's complement, representation of signed numbers where highest bit is used to indicate if number is negative.
but honestly the best way to get started is just to get a good book
well that's a bad start
Floating point numbers have different representation too
Know at least how to convert between decimals, hexadecimals, octal decimals and binary. That alone will help a lot.
eh you realy don't need to know this for most applications
most of that realy isn't to important
Like float (or double) x = 5.3
Eh to learn C++ it helps a lot to know these
If he doesn't know C++ or programming overall then it helps
eh meh. for the most part it doesn't realy matter
alright good to know
just knowing some basics is plenty for these
But knowing it helps a lot
okay but like 2s complement etc basically doesn't matter
It matters when you want to understand what's happening
tomorrow
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
difference between unsigned and signed, and why they have different number limits, what's a good data type to store numbers you want etc.
I have 1 year of experience in python I should be good
I am not saying to never learn about it. just saying it's not all to important for beginners
I mean say what you want, that's my stance no matter what, you aren't wrong but he should know these
you think 😉
yeah I'm learning the most broken language in the world rn (java... script) I'm fine
Python is not a static-typed language, whatever your variable holds is dependent solely on what you input into it so it takes care of many things for you
Here you will have to think about these things
You will see I guess
But sure that 1 year experience will help immensly
honestly python is more strongly typed then C++ 🤷
C++ is 30 hard.
ah I see
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?
honesdtly the most important thing I can say for C++ is get an good book
time to go online for that
... as expected from a snake
wait. It's not poisonous!?
Yeah or if you want to, you can choose https://learncpp.com for starters
murachs C++ is supposidly pretty good
yippee, I'll take notes
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:
- [Visual Studio](#1165492293810257920 message)
- CLion
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.
I have visual studio setup already
Community I hope
and I think I'm already gaining carpal tunnel .
yep it's conmunity
I didn't find vs code fun to use
VS Community has everything basic set up for you
debugger is built in with GUI and keyboard shortcuts
managing project files is built in
well how nice ain't it
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
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
I don't got 100+ dollars lying around to pay yearly
On Windows Visual Studio IDE (Community, Enterprise etc.) is king
best advice: actually take the time to learn the fundamentals. even though they seem really annoying and tedious.
students can get it for free
what are those fundementals
with the teachers right?
Basic features of the language
right?
be specific...
Yeah I think they have offers for schools over all
Understanding pointers for once, data conversions (very important, you can have data loss if you don't do it correctly)
well, uhh I need to pray that works, cause I ain't in school yet
Canada is intresting
Some data conversions look simple but aren't
yeah I can tell
in python.. a = b + c; move on, think no more about it. in C/C++. actually stop and think about implicit type conversions, unsigned overflow, signed overflow=UB.
Understanding scopes is important, so you don't create bug by simple overshadowing names
that's not gonna be annoying at all 😄
Understanding what keyword static does to variables
well its really not
so what does that do?
I always wondered
it depends 👁️
make the compiler work for you. -Wall -Wextra -Werror and fix everything!
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
alright?
how swell
its the varying usecase that makes it annoying in my opinion
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
ah I see
not gcc here, he's on msvc side now 
gcc had to be the most painful installs I've ever done
2nd place is windows server 2025
Just go through a course, such course will present to you all the knowledge you need to know.
ok
then /W4 etc
this makes me realize how unfamiliar I am with the terminal
dev-cpp WAS a mistake I see..
devcpp IDE? man.. yeah it's old as hell
you probably got bad advice; cause i just unzip a .zip and then click a .bat file, and it's working.
Isn't it using old Borland compiler?
I wish I could like W4 a bit more, but god is it annoying
I hate it here
yeah; it's close to a -pedantic but i find /W3 is missing lots of important warnings.
I got bad advice..
yeah, I kinda want somethign in between like yes I know my numbers can overflow but like it's not an issue get off my back
I'll come back to this tomorrow, give some ideas while I'm gone
btw. for that I meant that they are written into memory differently, in way different from how you would write integers to memory.
https://en.wikipedia.org/wiki/Floating-point_arithmetic#Other_notable_floating-point_formats
Above you have an image showing how it's split, you can read the article(?) if you want.
Sooner or later it would be good to know this, so you will know why NaN and inf exist.
yeah.. /W3.5 is needed. i use /W4 and a bunch of pragmas to turn off the really annoying ones
i like these conversations, makes me quickly check/re-evaluate the situation.. i've got /W4 set, but also some more things turned on.. like c++ #pragma warning(1:4296) // an unsigned variable is compared with zero wtf?! i think i copied the comment wrong... cause if that's what it's doing.. it makes no sense
You guys know that you guys aren't in #1013107104678162544 or #c-cpp-discussion right? 
Just saying, kinda bloat to the thread
!solved