I'm building my application and source code of breakpad on Ubuntu 20.04 with two architectures (arm64 and x86_64). Both have been built on Mac with M1 inside do
I am trying to find the path between two vertices and their distance. My implementation is the following: #include <iostream> #include <list> #inclu
I am starting a api rest server in a separate Qthread in my application. the server shall use a library which is using Q timer in several places. The compilati
How do I bind a callback function to a DataTemplate inside a HeaderTemplate in WinUI3? After reading various answers it appears the DataContext inside a HeaderT
We are developing a application with virtual camera plugin for macOS by using swiftUI & swift. It has also C++ & objective C library. When we use that p
I want to have an unordered map with a string and a std::function that call a constructor a class to make a shared_ptr. But I'm stuck, I don't know what I shoul
I want to transfer json data into request of json boost in cpp. If i take json in boost int outer=2; value data = { {"dia",outer}, {"sleep_tim
Consider this piece of code: #include <iostream> #include <vector> #include <cstdint> int main() { std::vector<int> a{ 10, 11, 12, 13
I have a vector of observations and an equal length vector of offsets assigning observations to a set of bins. The value of each bin should be the sum of all ob
This is a strange error, because it only happens with this function: #define FMT_HEADER_ONLY #include <fmt/os.h> #include <fmt/format.h> #include &l
I have some ideas about features that would be useful to have in C++. I would like to propose these features to the applicable ISO committee(s
New to C++. Here is my code: #include <string> #include <cstdlib> #include <time.h> using namespace std; const int Gardensize = 20;//Garden
I'm wondering about this c++11 example and using operator for algorithm functions (for_each, remove_if etc.). For example, I have 2 blocks: struct UpdateFunc {
I am trying to send the following message to Connman over Qt 5.12's DBus API: dbus-send --system --print-reply --dest=net.connman / net.connman.Manager.SetPrope
I am trying to make a program where you have to sign in with a password. If the password is incorrect it is supposed to erase the line so you can try again. Ins
Hi I have tried to cut a square/rectangle image to a circular one using the ClippingNode in cocos2dx but when I try to click on the clipped image and try to get
Is it currently possible to constrain a class template that rejects type argument which is the specialization of the class template itself without using static_
Input: N = 4 arr = {3, 23, 30, 45} Output: 5 Explanation: Product of these numbers is 93150. Rightmost non-zero digit is 5. can u solve this question in c++ and
The code is as follows. int main() { map<int,int> a; for (int i = 0; i < 6; i++) { a.insert(make_pair(i, i+1)); } map&
I installed the visual studio 2022 community edition with a C++ Desktop development packageScreenshot of Visual Studio Installer. When a new console application