Anonymous
It is bad
Nameful
What's wrong with it?
Anonymous
Everything
Anonymous
You have to use CLion or Visual Studio (w/ Resharper or without) to know what's wrong with CodeBlocks
Nameful
I do use CLion currently
Nameful
And I used Visual Studio back when I used Windows
Nameful
But I'm thinking about switching to something free
Anonymous
Visual Studio is free for personal use
Nameful
Visual Studio is free for personal use
I don't use Windows any more though, so it's not really an option
Anonymous
You can use CLion EAP for free
Anonymous
Or if you are a student
Dima
Or just buy it
Anonymous
EAP?
Early Access
Nameful
education thing?
Anonymous
Google for that
Nameful
ohh, really?
Anonymous
Yes
Nameful
thank you!
Anonymous
Qt Creator is actually good if you need free product
Diddy
/link
Aleksandr
Hi all, I am new to low level languages, can some1 answer, example for using pointers? In production
Asdew
So do you want an example of production pointer usage?
Aleksandr
I came from the frontend and now I'm studying C 😄
Asdew
Let me try to make up a quick example... typedef struct { int clears; int x; int y; } b_t; int main() { b_t b; b.clears = 0; b.x = 0; b.y = 0; b_move_up(&b); } void b_move_up(b_t *b, int amount) { b->y += amount; }
Asdew
If the argument of b_move_up weren't a pointer, it would modify a copy which only b_move_up has and is destroyed when it returns. Because it is a pointer, it points to the struct in main().
Asdew
Think of a pointer as a memory address and a *pointer as a value which is gotten from the memory address pointer.
cadalt ⚡ 𓄂𓍊𓋼
Hi @admin
cadalt ⚡ 𓄂𓍊𓋼
I want to Learn coding
Anonymous
HLEBR
cadalt ⚡ 𓄂𓍊𓋼
Thanks for support
Anonymous
Not one of those jokes again
RK
RK
I am trying this for LinkedList. But not able to print second element.
RK
Can anyone suggest the corrction?
MaJed
I_Interface
@neko_cpp The new case of asking here :D
Arthur
Can anyone suggest the corrction?
Why not store the pointer to the last node as well?
I_Interface
With damn big pictures.
I_Interface
/warn Your output is warn. Reason: Big damn picture for answering his test.
MaJed
/warn
YK Y
201
RK
Why not store the pointer to the last node as well?
Yeah. That can be done. But still while traversing we will have to use same logic what i used.
Arthur
RK
Ohh... Got it. Many thanks😊
Aleksandr
it’s not very difficult to understand, but why pointers so complex and dangerous in the code, because they are simply not used correctly and frayed somewhere? Sorry for stupid questions...
Nicolas
I see someone proud that haa app is c++ design? So it has power to remove icloud id on iPhones. Is that true?
Anonymous
it’s not very difficult to understand, but why pointers so complex and dangerous in the code, because they are simply not used correctly and frayed somewhere? Sorry for stupid questions...
Mainly due to potential Memory Leak, it's very hard to detect memory leaks sometimes. Read about RAII which is a good paradigm(?) to wrap your pointers around a scope limited construct. https://en.cppreference.com/w/cpp/language/raii
Dima
it’s possible in a theory but very rare chance
mbuf
➕4
Nameful
That's a lot of people
Pavel
Is there a way to check function return value type with a static assert? something like struct Test { const std::string& test() { ... } }; static_assert(std::is_same_v<std::invoke_result_t<Test::test>, const std::string&>, "...");
Dima
thanks
Anonymous
mbuf
Dima
is that even c
Dima
/warn photo screenshots
Anonymous
Sorry
Pavel
is that even c
I guess that's about memory bariers/ordering (weak, strong)
Pavel
agree, the wording is ambiguous not sure what "property" can stand for in C/C++
Anonymous
is anyone here use geany?
Ибраги́м
is anyone here use geany?
Why choose suffering over enjoyment (Qt Creator)
Ибраги́м
Why?
Anonymous
All is good, it is okay to be scared but never let it determine your decisions in anyway.. Please stay safe, alive and healthy.
Dima
Lol
Mar!o
Dima
lol
Mar!o