Asdew
Yes I meant I could divide it in paragraphs maybe
Oh, that. Just not sending a sentence per message with multiple messages is well enough, as most people can't even do that. You even divided your message into sentences. Next time also start the message with a capital letter.
Daniele
use bt command in gdb
I'm using vscode directly and interrupting execution using breakpoints, how would I be able to pass the command?
Artöm
So you type bt there
Artöm
I didnt try it in vs code though
Pavel
syntax is gdb <binary build with debugging symbols>
Pavel
and then run (or r) in appeared console
Pavel
and after you get SEGFAULT backtrace (or shortly bt)
Daniele
Oh alright thank you. I was just wondering why it didn't just show the seg fault in vscode like it does usually, I guess it doesn't want to show seg faults for trying to print a neverending string with printf("%s", string)
Kenny
Man use valgrind, kinda useful
vinícius*
Man use valgrind, kinda useful
gotta Valgrind all the time
vinícius*
Valgrind should be step one when debugging segfaults
vinícius*
Compile your program with -g then run Valgrind and it should tell you exactly what's going wrong
Daniele
will check your solutions later, thanks guys
Pavel
Man use valgrind, kinda useful
that's almost useless lol
Kenny
What? Hahahah
Pavel
perf report is ok for profiling
Kenny
Valgrind give me all errors when i have many
Pavel
-fsanitize=address,array-bounds is ok for leak, segfault, heap-buffer overflow, etc. detection
V01D
I just found out I totally space out when I code, because I am reviewing my code, and I found out that I have no idea how I did what I did. I have to read the source to understand it 😂. Am I the only one who does this?
Anonymous
Valgrind give me all errors when i have many
valgrind can miss errors that have been optimised away. use the sanitisers when you can
Pablo
Thanks everyone 🙏🏿
Pavel
https://ideone.com/hJWxHN Oh, why the hell std::pair is implemented so complex? It even has copy constructor and explicit default constructor defined that prevent it from being trivially constructible and trivially copyable for trivial types.
Anonymous
Ok
Anonymous
I will agree
Aakarsh
Could anyone tell me how I could print a variable of data type msgqnum_t ? I was trying to implement a message queue chat app and I needed to know the number of messages in queue
Anonymous
As Apple documentation says, it's just an unsigned long
Anonymous
std::cout << variable; is enough
Aakarsh
Actually I was using C so i needed the format specifier
Aakarsh
This helps. Thanks for this
Anonymous
Actually I was using C so i needed the format specifier
I hate printf so I don't know a lot of format specifiers for the printf I think wikipedia or cppreference should have enough info about them
Anonymous
This helps. Thanks for this
You're welcome but try to google first It was a first link in Google Search output
Aakarsh
I hate printf so I don't know a lot of format specifiers for the printf I think wikipedia or cppreference should have enough info about them
Indeed when it comes to data types like these it becomes difficult to remember the format specifiers
Aakarsh
You're welcome but try to google first It was a first link in Google Search output
I did Google it but then it gave me man page for the header file <sys/msg.h> Guess I need to google better 😅
Anonymous
I did Google it but then it gave me man page for the header file <sys/msg.h> Guess I need to google better 😅
I just typed the type name into search bar and pressed enter And got it the third link :D
Anonymous
Aakarsh
Damn
Aakarsh
And here I am typing "format specifier for msgqnum_t"🤦🏻‍♂
Dima
Y’all gotta get ban
Kenny
Lol
Kenny
How do i use /get command?
Kenny
Yeah, but what can i have?
Kenny
Oh true, sorry man hahaha
Vlad
bruh
Anonymous
it was nu
V01D
Rip.
Kenny
/get cppbookguide
The
/get c
The
I need c programming books
Kenny
I need c programming books
Look pinned messagge
SK
/get
Anonymous
/getnumber
Vlad
/get
printf("%s"); // why my pc caught on fire after this line
Anonymous
/gethelp
Yosef
Is there anyone who knows About pyton
Yosef
Yosef
Help me
Yosef
There is error in line 42
Vlad
Aren't there any python chats in the whole existence?
Vlad
It gotta be too hard to find one
Vlad
But my bet is that you messed up the indentation
Vlad
But my bet is that you messed up the indentation
That's what you get when you don't have { } lmao
Yosef
But my bet is that you messed up the indentation
Yeah like you say it identation error
Vlad
Yeah like you say it identation error
Have you tried putting your while condition on the same line
Vlad
I'm pretty sure it won't work if you split
V01D
/gethelp
/get cbook
V01D
Wojak
/get