Message from C, C++ discussions

December 2019

— Hoping to see you tomorrow

— 

Help !!
There's seriously frustrating-illogical problem happening with my code, in this part (line 188 of attached code):

    sort(_fam_size_order.begin(),
_fam_size_order.end(),
[&_fam_costs, &inverted](int a, int b){
return inverted?(_fam_costs[a]>_fam_costs[b]):(_fam_costs[a] < _fam_costs[b]);
});
Program runs as expected but if I change greater/less than signs to <= and >= , program doesn't run at all.
No Compilation error, No runtime warning - It just doesn't print anything at all !!!
Using mingw-64 on windows 10.
Compile command :
g++ -lpthread -Wl,--no-as-needed -static-libstdc++ -static-libgcc .\santa_workshop\dt.cpp -o .\santa_workshop\dt.exe -Wall

For sidenote : Currently, I'm saving output to file, but it doesn't print anything on console as well.

Here's the code : https://pastebin.com/Fzk4BRew

— Send header Files of c

— Hola everyone

— I'm noob about c++ coding program
can anyone teach me the basic of c++?

— Dumb suggestion but did you try using a syntactically correct equality operator

— I. E == instead of =

— I don't code on C yet so I don't know if that's the issue but

— Anyone know why make strips debug symbols despite compiling with -ggdb flag?

— In java we use chartat() to find character at index position. but how to do in c?

— Https://stackoverflow.com/questions/35109476/is-there-anything-similar-to-javas-string-charat-method-in-c
Check this.

Message permanent page

— What is int main(void) in c