Похожие чаты

What is the difference between two class ?

18 ответов

20 просмотров
...- Автор вопроса
...- Автор вопроса

Nothing.

...- Автор вопроса
Ghasem Ramezani
Nothing.

when we must using default keyword?

...
when we must using default keyword?

When you want to compiler creates that for you, some situations like when you explicitly defined a constructor with parameters, but you want to have the default constructor as well.

...
screenshot thanks

I said 'when you want to compiler creates that for you', how do you expect the compiler know that how to deal with the constructor parameter?

...
screenshot thanks

= default can be applied only for those constructors that can be automatically generated (default constructor, copy constructor, move constructor) Also to destructor and assignment operators (afaik).

Pavel
= default can be applied only for those constructo...

I believe that Scott Mayer explained default very well in Effective Modern C++ items, but i can't find it.

...- Автор вопроса
...
ok what difference between this two

Again, Nothing. In the second one you just explicitly ask the compiler to generate the default constructor for you.

...
thanks

What resource do you follow for learning C++ programming?

...- Автор вопроса
...
google and telegram

Oh, why? why not just The C++ Programming Language by Bjarne Stroustrup? or if you don't know enough about programming: https://www.stroustrup.com/programming.html

Prince Of Persia [field = CE,DM = BLOCK]
I do use C++ Primer and it's really good

I don't know about it, but the Bjarne books are really lovely 😂.

Ghasem Ramezani
I don't know about it, but the Bjarne books are re...

😁👍i follow him in youtube but in the books i may follow for reference

Похожие вопросы

Обсуждают сегодня

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта