Anonymous
As I remember, first time I saw the xdebug source code like that and it became my habit.
If you see some code in some large and widely used codebase, it doesn't mean it's good
Anonymous
got confused for a second
Vlad
Why doesn't it work ?
You'll basically initialize pointer with an int in C. And it won't even compile in C++.
Anonymous
If you see some code in some large and widely used codebase, it doesn't mean it's good
Also a lot of C hacks and workarounds is pretty bad to use in C++
Brown
Both are invalid in C++
I'm talking only in C.
Anonymous
I'm talking only in C.
Right now you're talking in English
Vlad
Come on.
What is common? :P
Vlad
Seems like you've got a bit of a struggle with English, eh?
Brown
I have a question in C. 1. char p[ ] = "something" 2. char *p= "something" 3. int p[ ] = {1,6,7} 4. int *p = {1,6,7} 1, 2, 3 works but not 3, why is that ?
Brown
Did any one get my question right ?
Andrew
all of them works, you mean maybe 4 not works?
Vlad
Yes
4th one doesn't make sense
Brown
Its needs malloc or an appropriate address.
Vlad
And compiler even computes size for you and all of that
Brown
You put an array instead
Isn't string literal an array of chars ?
Vlad
It's const char*
Brown
It's const char*
Okay. Thats where my problem is. Thank you.
V01D
Why ban?
Dima
Why ban?
because asking for assignments when just joined is a ban
Dima
guaranteed 100%
V01D
Ohh, I didn't see it as an assignemnt
V01D
Okay then, makes sense
Francisco
Ohh, I didn't see it as an assignemnt
One can clearly see when it is an assignment. You normally ask for specific problems while programming, not a whole solution to a problem
Anonymous
Hello guys im new for C++ any recommendations or whatever except the rules obviously
J
recommendations for what?
Anonymous
recommendations for what?
Some advices about C# and this group. Im not new for programming but im pretty new for C# and so excited to learn...
J
Well, first off, this is a C/C++ channel. The most notable thing about that is that they're not C#. That's a different language, running in a different environment.
J
Also, you'll need to be more specific with your questions. You can't expect people to give you arbitrary advise without context.
Anonymous
Also, you'll need to be more specific with your questions. You can't expect people to give you arbitrary advise without context.
Tell me what i need to get started. I wanna learn C++ and i got code::blocks what's next
J
what's your background in computer sciences, programming or systems use?
Anonymous
Why
It's not good
Anonymous
It's not good
So what is good
Anonymous
I'd recommend to read a book
Anonymous
Hi there, Can somebody tell me which online platform should I refer to learn C++ from beginning?
Anonymous
What about my coding environment
Anonymous
What about my coding environment
I think in books for beginners it will be described
Anonymous
Anonymous
Which book?
J
@unterumarmung , what os do you use as your daily driver, btw?
J
uggh
J
you'll probably want to delete that and install freebsd
Anonymous
No, I don't :)
Anonymous
Hey Danya, Can you suggest some books?
Anonymous
Hey Danya, Can you suggest some books?
https://t.me/programminginc/324468
J
then why do you suggest people do the same with their development environment?
Anonymous
then why do you suggest people do the same with their development environment?
I recommend, but it doesn't mean they must do this
Anonymous
CodeBlocks anyways is bad, Visual Studio is much better
J
but you never answered his question, nor answered his follow-up question for 'why' (besides the "it's not good")
J
well how about you start explaining the WHY, not the what?
J
but still, he should've been made aware of code::blocks being bad, instead of "what to do for a development environment"?
Anonymous
Why it is bad
Anonymous
Danya, Are you an Engineer?
Anonymous
I answered to install Visual Studio
Or follow book's advise
J
but why visual studio, and not something else?
Anonymous
but why visual studio, and not something else?
Because it's best IDE for a person that just start
J
i dont think visual studio is good, for example. but i myself use a vi setup that's about 15 years old and custom tailored, but that's not something i'd go and tell someone to do
Anonymous
Who all are students here?
Anonymous
that's like... your opinion
The person asked for my opinion, what's the problem?
J
they didn't. that's the point.
Anonymous
Anonymous
What if i just practice the basics in codeblocks and change it later
J
Tell me what i need to get started. I wanna learn C++ and i got code::blocks what's next