Daniele°
007
Can anyone help me to find out night mode / dark theme option in code blocks
Anonymous
What's the error
klimi
indentation
klimi
is clang bsd?
Anonymous
BinaryByter
is clang bsd?
uuuuhhhhhh
klimi
uuuuhhhhhh
just curious why not gcc
BinaryByter
Because gcc outputs bad code
Mihail
conio.h is what's wrong lol
BinaryByter
gcc is whats wrong
Mihail
Using a goto like that is also wrong
Mihail
conio.h isn't a part of standard C
Mihail
No lol
BinaryByter
if you dont accept our help, why do you bother asking?
Anonymous
BinaryByter
Nope
BinaryByter
ive deleted your question because it will just lead to debates
Mihail
If you aren't looking for criticism don't ask
Anonymous
Using a goto like that is also wrong
Than how i write this program
Mihail
Not a goto
BinaryByter
so many oyher ways
BinaryByter
ifs
BinaryByter
while loops
Mihail
And don't use getch and conio.h as a whole
Anonymous
Not a goto
But its must , i have a question and which like must use goto statement
Mihail
They aren't standard
Mihail
They're outdated
Anonymous
They're outdated
Okay than tell me what should i use in turbo c for hold screen
Mihail
And not cross-platform
BinaryByter
Mihail
Why do that in the first place?
Mihail
BinaryByter
Okay than tell me what should i use in turbo c for hold screen
>turbo c the only good thing about it is the compiler
Mihail
Talking about getch and conio.h as a whole
coderj
Mihail
Read the rules
Dima
Noobs
Prometheus
That stuff was so simple anyways he shouldn’t have needed help on here.
Anonymous
reason: "no"
Anonymous
?
The latest warn was because: no
klimi
Sure it was
klimi
The latest warn was because: no
What's the problem with that?
Nomid Íkorni-Sciurus
I have a weird issue with my C++ code.
Nomid Íkorni-Sciurus
I'm throwing a logic_error in a method but gdb yells at me an unknown "?" symbol or something like that and then the program exits right after without entering the catch() block
Nomid Íkorni-Sciurus
void code_that_throws_logic_error() { throw new logic_error( "Cannot instantiate a Nut with no content"); } int main(int argc, char **argv) { try { code_that_throws_logic_error(); } catch(exception e) { cout << e.what() << endl; } return 0; }
Nomid Íkorni-Sciurus
The code is like this except that "code_that_throws_logic_error()" is a class constructor.
Nomid Íkorni-Sciurus
Changing logic_error to runtime_error seems to work, but I can't get why.
Nomid Íkorni-Sciurus
doesn't logic_error extend exception?
BinaryByter
it does
Nomid Íkorni-Sciurus
it does
then why isn't it being caught ?
BinaryByter
try doing a catch(...)
BinaryByter
maybe it isnt extendinf exception
BinaryByter
but that'd be weird
BinaryByter
maybea bad implementatikn
Nomid Íkorni-Sciurus
Nomid Íkorni-Sciurus
maybe it isnt extendinf exception
#if __cplusplus >= 201103L explicit logic_error(const char*) _GLIBCXX_TXN_SAFE; #endif this is the definition I have in my stdexcept
BinaryByter
iirc logic_error is defined to inherit frome exception
Nomid Íkorni-Sciurus
iirc logic_error is defined to inherit frome exception
So I get unknown signal because of a bad implementation then
BinaryByter
BinaryByter
yep, it is
BinaryByter
#if __cplusplus >= 201103L explicit logic_error(const char*) _GLIBCXX_TXN_SAFE; #endif this is the definition I have in my stdexcept
look at that! not only is that horrible code using glibc - the biggest piece of bloat - but its also badly implemented
BinaryByter
I know why i won't touch g++ anymore 😅
Nomid Íkorni-Sciurus
lol
Nomid Íkorni-Sciurus
class logic_error : public exception { __cow_string _M_msg; public: / Takes a character string describing the error. */ explicit logic_error(const string& __arg) _GLIBCXX_TXN_SAFE; #if __cplusplus >= 201103L explicit logic_error(const char*) _GLIBCXX_TXN_SAFE; #endif #if _GLIBCXX_USE_CXX11_ABI || _GLIBCXX_DEFINE_STDEXCEPT_COPY_OPS logic_error(const logic_error&) _GLIBCXX_USE_NOEXCEPT; logic_error& operator=(const logic_error&) _GLIBCXX_USE_NOEXCEPT; #endif virtual ~logic_error() _GLIBCXX_TXN_SAFE_DYN _GLIBCXX_USE_NOEXCEPT; / Returns a C-style character string describing the general cause of * the current error (the same string passed to the ctor). */ virtual const char* what() const _GLIBCXX_TXN_SAFE_DYN _GLIBCXX_USE_NOEXCEPT; # ifdef _GLIBCXX_TM_TS_INTERNAL friend void* ::_txnal_logic_error_get_msg(void* e); # endif };
Nomid Íkorni-Sciurus
This is the full declaration in my stdexcept
BinaryByter
Oh