
C++ → Leet Code Solutions - 003 - Longest Substring Without Repeating Characters
cpp, LeetCode, C++, C++17, string
Solution "Longest Substring Without Repeating Characters" on Leet Code
class Solution { public: int lengthOfLongestSubstring(string s) { string candidate_str = ""; string checking_str = ""; size_t position = std::string::npos; for (auto& ch : s) { position = checking_str.find(ch); if (position …

C++ → Leed Code Solutions - 002 - Add Two Numbers
Solution "Add Two Numbers" on Leet Code
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode() : val(0), next(nullptr) {} * ListNode(int x) : val(x), next(nullptr) {} * ListNode(int x, ListNode …

C++ → Leet Code Solutions - 001 - Two Sum

C++ → Method call on nullptr

QML → QML - Tutorial 036. Working with Signals and Slots in QML
This article is the most comprehensive description of signals and slots in QML compared to all previous articles on this site.
In this article, I will try to explain the following when working with Qt/QML + Qt/C++:
- ways to declare …

CMake → Using variables declared in CMakeLists.txt inside C ++ files
I propose to consider the option of using variables declared in the CMakeLists.txt file in C ++ code.
To begin with, what is it for? For example, you want to specify the version of the program and some other auxiliary …

Boost → Boost - static linking in CMake project under Windows

Qt → Qt/C++ - Tutorial 086. Using QSequentialAnimationGroup and QPropertyAnimation to move a button
QSequentialAnimationGroup, cpp, Qt, C++, QPropertyAnimation
Let's write a small example of an application in which a button will be moved using property animations. To do this, we use the QSequentialAnimationGroup and QPropertyAnimation classes.
QSequentialAnimationGroup is a class that combines several animations into one group, which …

Boost → Boost - Console program menu using boost::program_options
And here is an article on the boost of my some accumulated materials. I offer you the option of writing a console program with support for the console menu, which is implemented using boost::program_options .
boost::program_options is responsible for processing …

C++ → C++ 17 - [[fallthrough]] attribute
Start at work to use a compiler that supports the standard C++17.
Actively we begin to use various features from this standard..
I was pleased with the [[fallthrough]] attribute for switch case constructions.
The essence of this attribute is that …
Fornex
Let me recommend you a great European Fornex hosting.
Fornex has proven itself to be a stable host over the years.
For Django projects I recommend VPS hosting
Following the link you will receive a 5% discount on shared hosting services, dedicated servers, VPS and VPN
View Hosting