Anonymous
I don't have tests too like that so
Anonymous
I don't have tests too like that so
You don't have to worry
Anonymous
Though the types of questions I'm supposed to ask are things I don't get correct?
Pavel
Though the types of questions I'm supposed to ask are things I don't get correct?
Not sure if I understand you. Basically if you have problem with C++ and can't google the solution, or if you don't understand how something works (or just curious about something C/C++ related), or .. probably there are more possible topics :)
Codigo
/get cppbookguide
Codigo
/get cppbookguide
Seems like it doesn't work
Pavel
#cppbookguide
Pavel
Hm, maybe the bot authors broke /get
Codigo
#cppbookguide
Thanks. Seems like the Pinned message is outdated
Anonymous
Guys who can help me in an assignment?
Vlad
famous last words
What a legend
Bumpy
what append if i have a char* function and i return an int pointer?
Bumpy
char *foo(char *string) { int v [5]; return v; }
Bumpy
what could append?
Vlad
char *foo(char *string) { int v [5]; return v; }
It's not casting to char* that is an issue. It is that you're returning pointer to the local array
Bumpy
i know. this is only example men
Bumpy
if i allocate it dynammicly
Bumpy
what could append?
Vlad
It's not casting to char* that is an issue. It is that you're returning pointer to the local array
Although if you'll try to use it as a zero terminated string it shall be UB as well. Unless you guarantee that it will have a '\0' within its bounds
Vlad
what could append?
Nothing really
Vlad
And don't use word append it doesn't make sense
Aakash
what could append?
Garbage value!🙃
Bumpy
😂😂😂😂😂
Anonymous
Hey I have a question
Anonymous
Should I study C++ straight away or should I start with C to get some groundwork?
Gianla.
nha start with cpp
Anonymous
Why though? The Internet says that C is easier and that it will help me
Gianla.
not that much. I mean, you can go straight with cpp cause nowadays is more useful and used of C
Vlad
Learning C is easier but it doesn't mean it's easier to use
Gianla.
also C is becoming old
Gianla.
also C is becoming old
and with this C has a lot of security problems
Anonymous
Besides I have little to no knowledge about programming. Like I know about arrays and stuff but it's just not that deep of a knowledge I got at the moment
Gianla.
every programming course starts with the very basic
Anonymous
and with this C has a lot of security problems
Really? Okay. Thanks for telling me
Nish
hey folks, anybody from stockholm, sweden? i have a quick about their pay scale
Gianla.
Really? Okay. Thanks for telling me
no prob! i started with python but now im learning straight cpp :)
Anonymous
no prob! i started with python but now im learning straight cpp :)
I tried python too when I was 11. I never really got it at the time
Gianla.
I tried python too when I was 11. I never really got it at the time
yeah, if you start with cpp you will have no problem switching at an easier language. Now i started with the easy one and im having trouble using an harder one
Pavel
Should I study C++ straight away or should I start with C to get some groundwork?
I would not suggest studying C before C++ if your aim is to use C++. C++ uses different ideomes and patterns, and you will harder time shifting your mind since C++ don't forse you to change your habits.
Anonymous
I plan to get some groundwork. You know what I mean?
Pavel
If you jump from C to Java for example it can be better, because change of syntax and tools can make you rethink how you're approaching problems, in C++ after C you can just keep writing C code which is not a good thing if you need to write C++ code.
Vlad
Yes it is
It is a lot easier to shoot yourself in the foot in C. And standard library is barebones
Anonymous
It is a lot easier to shoot yourself in the foot in C. And standard library is barebones
Then what do you recommend for me? I don't mean the best choice but what did you do for example? You seem very knowledgeable
Anonymous
Learn modern C++ and learn low level stuff once necessity arises
You mean I'll pick on stuff along the way right?
Anonymous
So you studied off a website?
Anonymous
Whaddya mean?
I don't have text books or stuff like that. I sometimes try downloading pdfs but it's hard finding something readable you know
Vlad
Especially at the beginning
Vlad
What's unclear?
Anonymous
Wyckie
Heey a i have been doing c..and am now with c++ and i really need your help
Vlad
I might not be able to
You sure aren't trying enough. I doubt that you couldn't get like 20 bucks for a book. Or just pirate it
Wyckie
A program to compute the average marks of 5 subjects for 5 students using the concept of classes
Anonymous
What's unclear?
This dude is a nerd🙌
Vlad
Can you be more specific?
Vlad
One can talk about allocations for hours
Asad
Well, I have a question. What is the difference between memory allocated using new and malloc. When I did new and then used realloc to the same memory, it gave me an error saying that I can only use realloc after malloc. Why? Memory is memory! Ain't that true?