Category "c++"

How to construct a class from a pack in C++?

I am trying to initialize a class with a pack passed as an argument to my function. Here is what I got so far: struct Vec3 { float x, y, z; }; template<

How to add the UIA ExpandCollapse pattern in Qml

I'm using http://accessibilityinsights.io/ to make sure my QML application passes Microsoft requirements for accessibility. There's only one error that I couldn

Global Locale Warning using C++ and gtkmm

I'm working on a gui using gtkmm and everything is working, but I get a warning that I can't figure out: ** (process:28120): WARNING **: 13:08:38.752: Can't set

AdjustWindowRectEx returns different results in VS and C++Builder

I try to use AdjustWindowRectEx() function to get the sizes of the window frame with aero theme enabled. But I found that AdjustWindowRectEx() function returns

Curl using Nuget on Visual Studio 2022 doesn't work

I've been trying to get Curl to work with VS for weeks. I've read a ton of other tutorials, guides, installation instructions and other materials and just... No

What is difference between adding a character and pushing a character in a string?

I was doing a question where I was adding a character using for loop in string like this: for(int i=0;i<n;i++){ str = ch + str; } This code was running

Im having trouble with this assignment that has me write vectors and arrays to a file

So in this assignment I have to have one function that has the user enter the vector which is the driver name and then they enter the drivers 4 points. That fun

Remotely debugging android NDK app using VSCode

I've tried a number of ways to get this to work but to no avail so far. My requirements are as follows: To be able to connect using visual studio code & gdb

How to includue multiple .cpp files into one main file [duplicate]

now in real world when building projects we use hunderends of .cpp files and we link them into one main.cpp file.Main.cpp #include <iostrea

Address Sanitizer: Deadly Signal

I was trying to solve 'Valid Parentheses' problem from leetcode. I am getting run time error after adding 'stackname.empty()' function. I tried several times in

compile c++ through shell with jenkins

I'm trying to make a jenkinsfile to compile c++ file through the shell however i'm having the following error: 1.scripts/Linux-Build.sh: 5: cmake: not found scr

how to correctly write vector to binary file in c++?

first sorry for my bad english. i am just joined this forum and search for how to correctly write vector to binary file. i just got from this forum an answer li

malloc(): corrupted top size Process finished with exit code 134 (interrupted by signal 6: SIGABRT)

please tell me why memory is not allocated in the line CLNAME* tmp=new CLNAME[this->Capacity_Ram]; the second day I'm looking for a problem, I can not unders

Rotating an end point while having the direction

I have a point and a direction and I would like to know what that point would be if it was rotated by 45 degrees. For example, if I have Point A being (0, 0, 0)

What is the best way to determine if the QTextEdit in my QT app is empty or not?

there's a text editing widget in my QT Widget application. My menu item checks to see if the text edit below is empty. Thus, I'm trying to create a function tha

Is there any method to decrease tensorflow lite invoke time in c++?

System information windows 10, x64 TensorFlow version: 2.7.0 Python version: 3.9.5 Bazel version : 3.7.2 5.GCC/Compiler version : 11.2.0 I run a custom CNN tfli

OpenCV output monochrome TIFF group 4 compression

Is there a way to output monochrome TIFF files in OpenCV with group 4 compression? This is the command to do it with imagemagick/graphicsmagick 'gm convert '.$f

Why executing std::setlocale(LC_ALL, "C") at startup?

Cppreference.com says: During program startup, the equivalent of std::setlocale(LC_ALL, "C"); is executed before any user code is run. Calling std::setlocale(

Questions regarding Red-Black Tree Deletion (z has 2 children) (pre-fixDelete)

Code Source - https://github.com/Bibeknam/algorithmtutorprograms/blob/master/data-structures/red-black-trees/RedBlackTree.cpp y = z; int y_original_col

-lglut32 cannot be found

I run my project which uses: #include <C:\Users\R\Desktop\LABO3\zad3\Debug\glut.h> but then when I build it I get this error: --------------------Conf