В статье описаны базовые способы оптимизации кода на C.
https://www.geeksforgeeks.org/basic-code-optimizations-in-c/
https://www.geeksforgeeks.org/basic-code-optimizations-in-c/
GeeksforGeeks
Basic Code Optimizations 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.
Qt — кроссплатформенный фреймворк для разработки графических интерфейсов (GUI) на С++. Основы работы с фреймворком в видео:
https://youtu.be/I96uPDifZ1w
https://youtu.be/I96uPDifZ1w
YouTube
Qt Tutorial : C++ Notepad App
Code & Icons Here : http://bit.ly/qttut
Subscribe to Me: http://bit.ly/2FWQZTx
Best Qt5 Book : https://amzn.to/2Mg4LC9
I thought it would be fun to make a real app in this Qt Tutorial, so I made a working Notepad app. We'll install Qt for Windows and MacOS.…
Subscribe to Me: http://bit.ly/2FWQZTx
Best Qt5 Book : https://amzn.to/2Mg4LC9
I thought it would be fun to make a real app in this Qt Tutorial, so I made a working Notepad app. We'll install Qt for Windows and MacOS.…
Интерпретатор — поведенческий шаблон проектирования, решающий часто встречающуюся, но подверженную изменениям, задачу. Больше о шаблоне с примерами кода на C++:
https://sourcemaking.com/design_patterns/interpreter
https://sourcemaking.com/design_patterns/interpreter
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++:
https://sourcemaking.com/design_patterns/mediator
https://sourcemaking.com/design_patterns/mediator
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://sourcemaking.com/design_patterns/memento
https://sourcemaking.com/design_patterns/memento
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++:
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…