Программы С, которые не компилируются в C++:
https://www.geeksforgeeks.org/write-c-program-wont-compiler-c/
https://www.geeksforgeeks.org/write-c-program-wont-compiler-c/
GeeksforGeeks
Write a C program that won't compile in C++ - GeeksforGeeks
A Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions.
Некоторые потрясающие современные возможности C++, о которых должен знать каждый разработчик:
https://www.freecodecamp.org/news/some-awesome-modern-c-features-that-every-developer-should-know-5e3bf6f79a3c/
https://www.freecodecamp.org/news/some-awesome-modern-c-features-that-every-developer-should-know-5e3bf6f79a3c/
freeCodeCamp.org
Some awesome modern C++ features that every developer should know
As a language, C++ has evolved a lot. Of course this did not happen overnight. There was a time when C++ lacked dynamism. It was difficult to be fond of the language. But things changed when the C++ standard committee decided to spin up the wheel. Since 2011…
Фабричный метод — порождающий шаблон проектирования, предоставляющий дочерним классам интерфейс для создания экземпляров некоторого класса. В момент создания наследники могут определить, какой класс создавать. Более подробно с примерами кода по ссылке:
https://sourcemaking.com/design_patterns/factory_method
https://sourcemaking.com/design_patterns/factory_method
Sourcemaking
Design Patterns and Refactoring
Design Patterns and Refactoring articles and guides. Design Patterns video tutorials for newbies. Simple descriptions and full source code examples in Java, C++, C#, PHP and Delphi.
Как начать применять C++ в вашем Android-проекте.
https://www.freecodecamp.org/news/c-usage-in-android-4b57edf84322/
https://www.freecodecamp.org/news/c-usage-in-android-4b57edf84322/
freeCodeCamp.org
How to start using C++ code in your Android project
By Onur Tuna Last year I gave a talk at the GDG DevFest in Ankara, Turkey. I have been planning to share that talk here ever since. Now that I’m a PhD candidate and have a bit more time, I’m putting the post down here. If you would like to
Несколько трюков в C++, которые можно использовать в спортивном программировании.
https://youtu.be/ZcdiwXtS6MM
https://youtu.be/ZcdiwXtS6MM
YouTube
Part 1: C++ tricks for Competitive Programming
These are some tricks that can be used in Competitive Programming. If you are using C++11 or later.
0:07 - auto keyword
1:40 - Initialize the containers
2:13 - Range based for loops
3:06 - Name of arguments in macros
4:12 - Include only one library
4:39…
0:07 - auto keyword
1:40 - Initialize the containers
2:13 - Range based for loops
3:06 - Name of arguments in macros
4:12 - Include only one library
4:39…
Посетитель — поведенческий шаблон проектирования, описывающий операцию, которая выполняется над объектами других классов. При изменении visitor нет необходимости изменять обслуживаемые классы.
Шаблон демонстрирует классический приём восстановления информации о потерянных типах, не прибегая к понижающему приведению типов при помощи двойной диспетчеризации.
Больше о паттерне с примерами кода: https://sourcemaking.com/design_patterns/visitor
Шаблон демонстрирует классический приём восстановления информации о потерянных типах, не прибегая к понижающему приведению типов при помощи двойной диспетчеризации.
Больше о паттерне с примерами кода: https://sourcemaking.com/design_patterns/visitor
Sourcemaking
Design Patterns and Refactoring
Design Patterns and Refactoring articles and guides. Design Patterns video tutorials for newbies. Simple descriptions and full source code examples in Java, C++, C#, PHP and Delphi.
Бинарный поиск — классический алгоритм поиска элемента в отсортированном массиве, использующий дробление массива на половины. Больше по теме по ссылке:
https://www.freecodecamp.org/news/what-is-binary-search-algorithm-c-d4b554418ac4/
https://www.freecodecamp.org/news/what-is-binary-search-algorithm-c-d4b554418ac4/
freeCodeCamp.org
Binary Search Algorithms Explained using C++
by Pablo E. Cortez
Binary Search Algorithms Explained using C++
Image source: UnsplashBinary search is one of those algorithms that you’ll come
across on every (good) introductory computer science class. It’s an efficient
algorithm for finding an item in…
Binary Search Algorithms Explained using C++
Image source: UnsplashBinary search is one of those algorithms that you’ll come
across on every (good) introductory computer science class. It’s an efficient
algorithm for finding an item in…
Библиотека C/C++ разработчика | cpp, boost, qt
Что будет выведено на экран?
Compile Error, т. к. break можно вставить только в цикл или switch.
Загляни за кулисы геймдева и попробуй свои силы в разработке игр. Присоединяйся к онлайн-интенсиву по Unity.
Участие бесплатное: 🔜 https://clc.to/qwg_mA
✨ Познакомишься с основами Unity.
✨ Напишешь игру про космический корабль и его противников.
✨ Поработаешь с анимацией, звуковым оформлением.
Спикер интенсива — Михаил Овчинников, специалист Skillbox и программист с двенадцатилетним стажем.
Лучшие участники получат сертификат на 30 000 рублей для обучения в Skillbox.
Ждём тебя 16-18 января в 18:00 по МСК!
Участие бесплатное: 🔜 https://clc.to/qwg_mA
✨ Познакомишься с основами Unity.
✨ Напишешь игру про космический корабль и его противников.
✨ Поработаешь с анимацией, звуковым оформлением.
Спикер интенсива — Михаил Овчинников, специалист Skillbox и программист с двенадцатилетним стажем.
Лучшие участники получат сертификат на 30 000 рублей для обучения в Skillbox.
Ждём тебя 16-18 января в 18:00 по МСК!
Библиотека C/C++ разработчика | cpp, boost, qt
Что будет выведено на экран?
Compile error. Переменные класса в этом случае не могут быть проинициализированы напрямую.
UPDATE: На самом деле ошибка возникает из-за отсутствия доступа к приватному полю класса.
UPDATE: На самом деле ошибка возникает из-за отсутствия доступа к приватному полю класса.
Библиотека C/C++ разработчика | cpp, boost, qt
Что будет выведено на экран?
Зависит от компилятора. Выражение x = x++ + ++x; приводит к неопределённому поведению.