Category "c++"

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

Expression does not evaluate to a constant

I've just started to learn C++ and I don't understand this error: std::string AFunction(const std::string& str) { size_t s = str.length(); char inP

How can I divide the Eigen::matrix by Eigen::vector?

following is my code. Eigen::Matrix3d first_rotation = firstPoint.q.matrix(); Eigen::Vector3d first_trans= firstPoint.t; for(auto &iter:in_point

BIts Per Sample / Pixel libtiff vs WIC

TIFF *TiffImage; uint16 photo, bps, spp, fillorder; uint32 width,height; unsigned long stripSize; unsigned long imageOffset, result; int stripMax, stripCount; u

Is bitwise complement of (n-1) equals to (-n)

The following code prints the two odd occuring numbers in an array: #include <iostream> using namespace std; int main(){ int n; cin>>n; int