When I build a cmake project in visual studio and this error occurs, I tried to uninstall and reinstall visual studio but it did not work. the Build succeeded a
I am trying to initialise an std::vector<std::unique_ptr<std::string>> in a way that is equivalent to an example from Bjarne Stroustrup's C++11 FAQ:
my project need cross compile for arm aarch64 on ubuntu x86_64, but failed at configure stage, below is log log # Execution platform: //platforms:linux_gcc9_aar
On Qt5 project using Microsoft compiler, the qmake .pro project file have DATE = $$system(wmic os get LocalDateTime > $$OUT_PWD/wmic.txt) DATE = $$cat($$OUT_
I want to initialise two 2D matrices of size 401X401 and multiply them in a speedy way. But most probably due to stack overflow, two double 2D matrices were not
I've getting used to simple cmake codes like this cmake_minimum_required(VERSION 3.20) project(trial VERSION 0.1.0) set(CMAKE_CXX_STANDARD 20) find_package(fm
I have read this question and tried to replicate the answer with the following code: #include <iostream> #include <syncstream> #include <thread&g
I need to inject Open CV to Qt according to this tutorial, but at the stage mingw32-make on cmd I got en error. C:/opencv/sources/3rdparty/protobuf/src/goog
I've getting used to simple cmake codes like this cmake_minimum_required(VERSION 3.20) project(trial VERSION 0.1.0) set(CMAKE_CXX_STANDARD 20) find_package(fm
I have read this question and tried to replicate the answer with the following code: #include <iostream> #include <syncstream> #include <thread&g
I am making something in Raylib C++ and every time I open the .exe file, the console and the raylib window opens up. How can stop/hide the console from opening
I know that std::deque has the different chunks of contiguous memory and iterator is invalidated by inserting or erasing the middle of deque. In addition to it,
I created a struct named products that contains multiple data types: struct products{ int ID; string Name; double Price; int Quantity; }; Then
I trying to make a C++ code that delete occurrences of an element if it occurs more than "n" times, when I debug the code, apears a window wit
I want to send bytes to a HID device. I've allready tried libhid but I can't get it to work. Does anyone know a libary or a easy way to send bytes via. HID in C
I learned the volatile keyword in Java. It serves as a mean to ensure visibility in other threads when a variable is written by one particular thread. It does t
I have an error with inlcudePath here is what it says. #include errors detected. Please update your includePath. Squiggles are disabled for this translation uni
The following piece of code always gives garbage value as output. I am aware of the reasoning behind it as a dangling pointer is created which still points to t
in my PhD project, I want to create a graph using LEMON. The graph itself is directed and hierarchical meaning that the graph has a tree-like shape. The leaves
While searching for an answer to the question above, I came across the answer of Luke Kowald to the question Check if a value is defined in an C enum?. It state