Nils
"as everyone else" 🤔 I never read a book to learn any language
Naman
Can we use constructor initialization list and member initialization list together in a derived class constructor?
Aakarsh
https://gist.github.com/aakarsh-jithesh/590d41b758e90cca2a34d1a492be665d
Naman
Calling appropriate base class constructor
Aakarsh
Ok I'll try this one out
Naman
Yes, it worked as a part of member initialization list sparated by comma. Thanks
Aakarsh
Didn't get you could you explain
Aakarsh
Or else could I just use another shmget to store that int? Instead of combining with the structure and screwing it
...
Hello, sorry for disturbing. I want ask you guys something. I just learn this and I'm not quite understand. So, in this exercise,I need to subtract the price and the number and use the for loop right? Am I right?Any tips?😅
...
Right ..then I have to put for loop right? for the multiply it ..Sorry, not subtract
Pavel
Do we have an ability to forward arguments in a variadic template function in a way, that if the arguments are just forwarded to another function that takes them as references, this template function will not try to copy these arguments and will pass them as references as well? Basically I want the lines marked as "does not compile" in my example to compile and no UB in the latest case. https://ideone.com/VKlr8T
Anonymous
Anonymous
Try it yourself first
Pavel
oh, gosh.. that was the mistake.. 🤦‍♂️
Pavel
thanks!
TalkSick
If set and multiset are containers that manage data components that have keys and if sets contains of only the keys then where's the data stored??
Anonymous
Please i need pia vpn account
Artöm
Nameful
This group is about C++
TalkSick
How do you have answers to every question?? I guess you are a teacher.. BTW thankyou
Anonymous
Please i need pia vpn account
Nameful
Please i need pia vpn account
What's this have to do with C/C++?
Anonymous
ive been reading the book ( principles and practices of programming by stroustrup ) its been great so far but im just stuck in the chapter 6th grammar , it feels much complex than the previous chapters and many elements used in this chapter werent explained before :(
Girish Kumar
ive been reading the book ( principles and practices of programming by stroustrup ) its been great so far but im just stuck in the chapter 6th grammar , it feels much complex than the previous chapters and many elements used in this chapter werent explained before :(
It's content is complex to understand. If possible, start with "C++ The Complete Reference" or "C++ How to Program" book. After that go with the book, what you said..
Anonymous
Hii
Girish Kumar
What you said is correct, I think so. But as per my understanding to a novice in C++, it is difficult to understand and grasp concepts from "C++ The Programming Language" book. I learned much C++ from those two books. Especially the exercises from C++ HTP book. I solved problems in TopCoder site after learning from C++ HTP book.
Victor
Hi..
Victor
is the operation in line 13 actually invalid
Mar!o
UB
Mar!o
Because it's not defined if left or right of = will be evaluated first
Victor
oh.. guess there's no way to do that? I'm trying to avoid using scanf for the program at all
Mar!o
Make a temporary variable
Victor
Oh i guess so
Givan
Which software is best for C/C++
Dima
Which software is best for C/C++
read the pinned message
Anonymous
/warn screen photo
SK
/get ide
Anonymous
How can i study programming from the first
Anonymous
Very first
Anonymous
I know your pain, Bjarne
NXiss7
I know your pain, Bjarne
He's damn right.. 😅😄😄
Anonymous
Hello, can mips performance metric be used for processors without mips instruction set?
Mar!o
What is RISC and CISC?
Mar!o
Have heard it... are they architectures like x86 or ARM ?
Anunay
What is RISC and CISC?
Types of processors differentiated on the basis of instruction sets
Anonymous
Anonymous
x86 is in CISC architecture family
Anonymous
Hello, can mips performance metric be used for processors without mips instruction set?
So you are saying mips is only for processors with mips instruction set like the RISC?
Anonymous
Mar!o
That's why Complex and Reduced... thanks!
Mar!o
What is used more often today?
Utkarsh
and does simpler set of instructions make any difference to performance?
Mar!o
It still find architectures a bit confusing there are so many
Anonymous
and does simpler set of instructions make any difference to performance?
Theoretically because with Complex one you can do more on CPU itself instead of coding the operation yourself
Anonymous
Let's say a computer processes 20mb of instructions in a program and that computer has a processor with a mips instruction set. Since, all mips instruction are 4 bytes, should I divide the instruction size by 4 bytes to get the total instruction count?
Utkarsh
I read somewhere RISC is more power efficient and hence its usage in mobile devices, not sure how though.
Anonymous
So how then should I find the actual instruction count?
Anonymous
OK
Anonymous
Thank you.
Utkarsh
What is used more often today?
Also as mobile devices do not require huge processing powers, RISC provides pretty good power efficiency in exchange for some computation power.
Anonymous
Why RISC? Did arm became RISC?
Anonymous
Lol I'm stupid
Utkarsh
Why RISC? Did arm became RISC?
it always has been imo
Anonymous
it always has been imo
I've already said that I'm stupid.. Do you me to repeat it?😭
Mar!o
Thanks. So my Desktop uses CISC
Anonymous
Oh
Anonymous
Lol
Anonymous
I confused RISC with CISC
Anonymous
Again
Anonymous
These letters.. so confusing