Похожие чаты

What is the difference between two class ?

18 ответов

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

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

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

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

30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
Чёт не понял, я ж правильной функцией воспользовался чтобы вывести отладочную информацию? но что-то она не ловится
notme
18
Привет)) уже кажется эту тему перемусолили, но вот я так и не понял. Я сейчас сижу на 27дюймов 2к мониторе. На Актуальной макоси, если я куплю 27д 4к монитор: - будет ли изобр...
Vladislav Piskunov
16
Also, why can’t the community have a vote/ say when it comes to initiatives like buybacks. Isn’t the point of crypto decentralisation? Don’t we deserve input as long term supp...
👨🏽‍🦰
13
any reference of this implementation?
BitBuddha
29
Страшнейшая правда про списки ЦБ. С первых дней жизни P2P сферы, молодые человеки, начитавшись законодательной базы и "внутренних" документов, решили, что им противостоит сер...
Foxcool
3
У меня есть функция где происходит это: write_bit(buffer, 1); write_bit(buffer, 0); write_bit(buffer, 1); write_bit(buffer, 1); write_bit(buffer, 1); w...
~
14
Hi guys, any problem with Pulsebrige? Trying to transfer from wETH to ETH. First it tells me to connect my metamask "through mobile app" not desktop. Then I did and confirmed ...
Snowflakecrypto
13
Карта сайта