Category "c++"

Ignite C++. Can the following APIs be used?

I was wondering if the following APIs are available in Ignite C++. And if they are not available, what would be a reasonable alternative to implementing the sam

Ignite C++. Can the following APIs be used?

I was wondering if the following APIs are available in Ignite C++. And if they are not available, what would be a reasonable alternative to implementing the sam

Create rectangle from given words by some rules

i got this task to make, but i am completely lost. I don't know how to make this... Could you please give me some ideas? I started making it and only thing i ma

Drawing a 3D cuboid and rotating it in OpenGL

I am trying to draw a 3D cuboid by clicking on one of the corner points and then extending it based on the dimensions provided by the user, and then rotating it

How to override BOOST_TEST with an absolute tolerance

I have data with a small dynamic range, and a moderate level of fuzziness (atomic coordinates). I'd like to write tests that check that two coordinates are pret

Android packages are ignored when using VCPKG with manifest mode

I was trying to install android libraries using vcpkg manifest, but they are simply skipped for some reason. I am lost, pls tell me what I am doing wrong. This

Can't display OpenCV VideoCapture in Qt

I want to display the content of my VideoCapture in a QGraphicsView, however if I run the Program my WebCam activates, but nothing is displayed onto my Graphics

Type conflicts in non-type template argument deduction

#include<type_traits> template <typename T, T> struct A { }; template <typename T, T t> void f(A<T, t>) { } int main() { f(A<c

Measuring OpenMP Fork/Join latency

Since MPI-3 comes with functionality for shared memory parallelism, and it seems to be perfectly matched for my application, I'm critically considering rewritin

Double clicking in SFML doesnt work as expected

I am working on a recreation of minesweeper using cpp and SFML. I have coded the board and the tiles switch to their revealed states when you left click on them

What is wrong with Insertion Sort on Doubly Linked list?

I am getting some random result. I have gone through the flow and did dry run several time but can't figure out exactly what's wrong with the code. flow of prog

How to access private members in friend function in header class

I have created header file for definition of Class Name.h class Name { private: char* Fname; char* Lname; public: Name(char* ='\0', char* ='\0'

Overloading the assignment operator= doesn't work for anything except the implicit object passed in c++

The comparison in the assignment operator works as expected, but when I try to use a temp variable and load then return that, all it returns is the defaults. De

Can C#(.NET 6) call managed/unmanaged C++ dll?

I'm attempting to call a c++ DLL(WinSDK: 10.0.18362.0, Platform Toolset: VS 2017 v141) from C#(the target framework is .NET 6.0) on ARM, and I compiled them for

Why is conversion from string constant to 'char*' valid in C but invalid in C++

The C++11 Standard (ISO/IEC 14882:2011) says in § C.1.1: char* p = "abc"; // valid in C, invalid in C++ For the C++ it's OK as a pointer to a String Lit

When I build and run code on CodeBlocks why do I now get a zsh: file or directory not found error?

I have written some code in CodeBlocks, and when I run it, I get a zsh: file or directory not found error. I never used to get this before but after installing

Spiral Iteration

I need an Algorithm that I will use to scan pixels out from the center. Problem is with different lengths and sizes, it sometimes can't get to the position (See

How can I get my counter to work properly?

I'm doing my c++ homework on arrays, everything seems to be working fine except the counter for the problem. Before I show the code these are the requirements f

conan + cmake generators : include directories not found during compilation

I am new to Conan, and I'm struggling to use specific conan packages in CMake. I started with including boost to my project using conan, and that worked out gre

Comparing latency of mutex vs. spinlock wake time

I am curious about the latency of a mutex vs. spinlock, measured as the time between when one thread unlocks it and another waiting thread can access it. I wrot