when I develop a PCIe communication interface, I used CreateFile & Readfile function to operate the device. But when I tried to set timeout to the handle, I
I have the following code: typedef unsigned char uchar; constexpr int leaing_ones(uchar const u8) noexcept { return __builtin_clz(static_cast<uchar>(~s
I'm trying to export a c++ library function through JNI, I've this header file called "Pylon.h" here's the source code: /* DO NOT EDIT THIS FILE - it is machine
The problem: In this task, you need to write a regular segment tree for the sum. Input The first line contains two integers n and m (1≤n,m≤100000), the s
I've been attempting to follow this guide here for writing a program in C++ that allows me to create an application window, however I ran into
I am building a project that includes webrtc with CMake, Visual Studio 2019 and ClangCl. This is the command I run to configure : cmake -G "Visual Studio 16 20
I want to have a class with a constant pointer to a function as a member. However, I'm instead creating functions with constant return values (a strange feature
Im trying to implement a simple LinkedList class, but this error shows up and I don't understand why. struct Node { public: int val; Node* next; Nod
Dear fellow programmers, Currently I am working on implementing a Microsoft RPC server / client program on Windows. Using nmake, I managed to compile the client
I have two arrays A and B which have m and n int variables respectively. I have a function f, and I want to generate all f(a, b) which a is in A and b is in B:
I have a QDialog where I can enter a Text and add it to a ListWidget inside the MainWindow after I clicked OK. Therefore I created a Method in the MainWindow cl
Let's say I have the following string that I want to tokenize as per the delimiter '>': std::string veg = "orange>kiwi>apple>potato"; I want every
Consider this code, running on a Linux system (Compiler Explorer link): #include <filesystem> #include <cstdio> int main() { try {
I was attempting to compile and run the example on this page that explores function pointers as a function input. The example I was running was the 66 line one
In my project I rely on some third party shared library named foo. foo itself is relying on some other third party dll (let's call it bar.dll), which is however
I am trying to use Eigen::pardisoLU but I have no output. This is my cmakelists.txt: cmake_minimum_required(VERSION 3.9) project(my_test_project) aux_source_dir
I am looking to replicate the look of the TableView presented in this picture using Qt. The one in the picture looks to be created with Windows Forms. The mai
For a proof on concept I want to use a CMAKE library in a large bazel (4.2.1) project. In my first attempt I build the library outside bazel by hand and am load
I'm using opencv 3.1.0, tried to read an image by imread, just like Mat image = cv::imread("1.jpg"); but it stunked without any error message (performs like in
I have a base class and 3 separate derived classes. All of the .hpp files are structured the same. The .hpp which doesn't work: #ifndef CAESARCIPHER_HPP #define