obi
can u show me how you would do?
Wojak
@obii9 https://hastebin.com/jocabawiwa.cpp
Wojak
sorry if i tagged the wrong person
obi
i mean how would you save the two numbers in two different int?
Abel
There is one of you who can develope android game
Paras
Thanks to show my mistake
MᏫᎻᎯᎷᎷᎬᎠ
well apparently getch is removed from C/C++ library is there any replacement?
MᏫᎻᎯᎷᎷᎬᎠ
they both need Enter
Anonymous
well apparently getch is removed from C/C++ library is there any replacement?
Has ever getch been in stdlib? https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/getch?view=vs-2019
MᏫᎻᎯᎷᎷᎬᎠ
Has ever getch been in stdlib? https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/getch?view=vs-2019
Yeah after recent search I realized it is just a compiler extension so is there any alternative for it?
M3dular
Am a noon here what's the best IDE for C
M3dular
If am building an http network application
M3dular
Like an app that communicates over the internet
Asdew
Wooooah, how many moderators are there?
Tokin
Like an app that communicates over the internet
Sockets is what you should be looking at.. Not IDEs
MᏫᎻᎯᎷᎷᎬᎠ
There is considerable amount of information about CS in general and C/C++ in specific in this site: https://www.cprogramming.com
MᏫᎻᎯᎷᎷᎬᎠ
Tokin
Maybe ask Marie, Rose's elder sister to convince her
Anonymous
Hello everyone
Anonymous
I want to learn c++ oop
Anonymous
Anonymous
I want to learn c++ oop
http://harmful.cat-v.org/software/c++/
MᏫᎻᎯᎷᎷᎬᎠ
I want to learn c++ oop
Check the above link
Ajay
Need some help with this
Arseny
Need some help with this
Why don't you post the code fragment?
Arseny
https://ideone.com/2aF1hT
Code doesn't correspond screenshot you posted
Ajay
Code doesn't correspond screenshot you posted
Oh, I just edited the code, should I again put debugging output?
Arseny
Need some help with this
There was SIGBUS originally, wasn't it?
Ajay
There was SIGBUS originally, wasn't it?
By "originally", you mean ??
Arseny
Need some help with this
Have you changed the screenshot when edit the message?
Cengizhan
I do not understand why people are just doing such competitive programming things.
dj
how could i store results of permutation or combination of numbers on an array instead of printing them on C🤔
Cengizhan
Just??
Most of the questions are asked in here, from competitive programming stuff in recent days.
Arseny
https://ideone.com/2aF1hT
Line 130, examine, which value passed to par and which size par is
Arseny
Code is very sloppy
Arseny
No any checks when using C arrays
Ajay
Line 130, examine, which value passed to par and which size par is
Oh !! I changed the template for the LCA but forgot to change that there. Big Thanks to you. I couldn't find it because it was only showing me error on the function call in the screenshot that I provided you.
Arseny
'Use the gdb/lldb, Luke'
Ajay
Code is very sloppy
yeah I know that. But, I've templated them.
Ajay
'Use the gdb/lldb, Luke'
gdb doesn't work properly on my mac version so I had to use valgrind
Anonymous
I do not understand why people are just doing such competitive programming things.
Because Google/Facebook/etc love competitive programmers
Arseny
lldb works just fine with clang
Ajay
I use gcc
Ajay
BTw, How did you find the error in there. I mean did you use breakpoint on that thing(normal way)?
Cengizhan
Because Google/Facebook/etc love competitive programmers
Yes ofc, pay more than 100k for writing silly Python codes for CI/CD environments.
Betty Ssam🍒
Hey
Ajay
I'm not good at debugging things, that's a secondary reason why I use valgrind. I automatically catches SEGFAULT on just typing single command 😅
Betty Ssam🍒
Anonymous
/warn screen photo and offtop
Arseny
BTw, How did you find the error in there. I mean did you use breakpoint on that thing(normal way)?
Easy: Program received signal SIGSEGV, Segmentation fault. 0x0000555555555578 in query_up (x=500, y=1) at main.cpp:130 130 x = par[x][0]; //Then move to its parent, that means we changed chains
Arseny
gdb doesn't work properly on my mac version so I had to use valgrind
Btw i've no idea why you can face any troubles on mac with gcc/gdb
Ajay
Recommend you to become good at this )
Yes, I want to be seriously. I use vscode and use its debugging feature and so I've to keep clicking the step over sign to move the debugger to next breakpoint line. I'm mad.
Ajay
Btw i've no idea why you can face any troubles on mac with gcc/gdb
gcc was alright. But, I've gdb installed but I don't know sometime back it didn't work for me
Arseny
"If you're on Sierra , that's expected. GDB isn't compatible with macOS Sierra , even the last release (7.12)."
Arseny
Arseny
But you can still use clang+lldb
Arseny
Ajay
But you can still use clang+lldb
somewhere below the chat someone recommended me valgrind so I used it. 😅
Arseny
As you can see, normal debugger is better to find the trouble
Ajay
The best thing about valgrind is that I just had to run a single command and it pointed out all the respective segfault lines in the code, which uptill now I had no trouble fixing. But this really has questioned my belief.
Arseny
Debugger is pretty the same. I've just run gdb a.out and thats it
Ajay
As you can see, normal debugger is better to find the trouble
yes this particular case. It was easy. But, I think I need to learn debugging in valgrind rather than relying on that single command.
Arseny
Valgrind is not a debugger. "Valgrind is an instrumentation framework for building dynamic analysis tools. "
Ajay
BTW, can you recommend some debugger now that gdb doesn't work in my case?
Arseny
I've named it 3 or 4 times already ))) LLDB
Anonymous
Hi