Anonymous
Triple is for a code block. inline test
klimi
one for inline, 3 for block
Dima
` yes `
Anonymous
test ok
Dima
yes
Pavel
triple work like this , while single work like this
klimi
no
Anonymous
Oh, I see. Thanks. I thought it would follow the general markdown format of double.
Nils
This is my range-based loop: (const auto& [i, thisclient] : clients) How to I make thisclient a pointer and i a normal integer?
NXiss7
Type of items in clients?
Nils
Type of items in clients?
clients is std::map<int, client_struct>
Nils
ok another question, how do I do a range-based loop for pointers to the values only?
Anonymous
anyone send 'let us c' book solution
I liked "c in depth" more interesting and organised . By the way you can google the solution of let us c . No need to ask here i think
car
Okk
j
/notes
j
/get best-book
Anonymous
/get fork
j
#best-book
j
#cbook
j
#cppbookguide
Marián
cringe question, but what's difference between struct and class when both created on stack?
Marián
i know you should create class on heap, just was curious what if I do create it on stack only (i am writing c++ for my microprocessor rn)
Marián
Anonymous
Hi
cyber
Thanks
Brax
#howtoprogram
Brax
Thanks miss Rose
Tintin
Thanks miss Rose
It's a bot
Brax
Thanks, will not repeat it again
Pavel
i know you should create class on heap, just was curious what if I do create it on stack only (i am writing c++ for my microprocessor rn)
No difference except for the mentioned on your screenshot. BTW objects of classes created on stack are pretty common, so I wouldn't say that "you should create class on heap". This may be the case for polymorphic classes accessed from the pointer to the base class but not in general.
Marián
thankss
I_Interface
Welcome.
Anonymous
lol ok I realized it's a bot after I responded
Anonymous
Welcome.
Thanks
Anonymous
/get cbook
Anonymous
/get imhacker
Anonymous
Can anyone suggest me book or a YouTube channel or a website to learn C++ . I have fundamental knowledge of C language . I want to advance to C++
Андрей
Hi, guys!
Arthur
👋🏻
Anonymous
Hi Guys! I am Nero from the Philippines. I am new to programming and currently studying the c++ programming language. Thanks for accepting me here!
Anonymous
I'd choose A Tour of C++, @Ritik_Tiwari
Anonymous
I'd choose A Tour of C++, @Ritik_Tiwari
I will give it a try. Any YouTube channel that you can suggest which may help in journey
Anonymous
I will give it a try. Any YouTube channel that you can suggest which may help in journey
I can recommend only https://www.youtube.com/playlist?list=PLlrATfBNZ98dudnM48yfGUldqGD0S4FFb
Anonymous
Thank you very much 😊
Anonymous
Happy father's day to u all.... be good husbands and fathers 🍾🍾
Henry
hi am new to c
Anonymous
nobody accepted you lol
regardless,Im still grateful😊
Kamikaze🥷
hello
Kamikaze🥷
please I have a C programming question
Kamikaze🥷
I need help with
Kamikaze🥷
Emir
why is last line of this code printing “Base” ?
Anonymous
why is last line of this code printing “Base” ?
because print() is not a virtual function
Anonymous
literally get ANY book on numerical analysis and see the algos recommendation: Numerical Analysis by Burden and Faires
Henry
I need a program on generating random number
Emir
because print() is not a virtual function
but im pointing Sub class, why is that happening
Anonymous
but im pointing Sub class, why is that happening
-_- because print() is not a virtual function
Anonymous
the thing you want only works with virtual functions
Anonymous
Do you want us to write code for you?
Anonymous
yes please
/warn warn please
Anonymous
lmao
Anonymous
yes please
btw i edited my message to add a book
Anonymous
but im pointing Sub class, why is that happening
Learn how polymorphism in C++ works
Nils
Yeah, now I learned that too
Marián
k another cringey quiestion, how is the speed
Marián
if i make pointer to something that's on "stack"? I've never realized this until playing around with microcpus
Marián
eg i make int on stack and then pointer to it that i pass to some nested functions, how's the speed of changing it's value?
Marián
for example, if I alloc some datatype on stack at main-function scope level and pass it to children functions with &ref, it'll copy the value, that's not what i want to do *pointer, it'll pass pointer, but to what if it's on stack? will this only note the shift of stack pointer? or how does this precisely work?
Asdew
I don't really understand your question, it seems like a reasonable one, if you could just clarify, I could try answering.
Andrea
I have a question .. why the sizeof an empty file is 8? shouldn't it be 4? being composed only of EOF and being whole I would say that the file is also 4
Andrea
Huh?
why the sizeof an empty file is 8? doesn't it just have EOF which is an int? and is worth 4
Asdew
How exactly are you getting the size?
Andrea
sizeof(file);