Problem: You are given an array of integers that contain numbers in random order. Write a program to find and return the number which occurs the maximum
i'm using this api: Pa_OpenStream() // Open line-in stream err = Pa_OpenStream(&m_stream, &m_inputParameters, &
I'm having trouble getting gtkmm-4.0 to work on Mac OS Monterey. Here is a simple C++ application that uses gtkmm4. // helloworld.cpp #include <gtkmm.h>
I need a way to identify a unique combination of template types that gives me an easily indexable identifier. I have the following class: #include <cstdint&g
Guys! I'm a new user of qt and I faced a problem with qml. This issue has already been discussed in this article, but for python. I write in C ++/Qt 6.1.1, QtCr
Here is a related C answer that doesn't work (as a zero initializer for a struct) in C++: Initializing a struct to 0. One of the solutions presented is this: my
I want to use some C++17 features that Mac's clang doesn't currently support, so I use brew install gcc --HEAD to install the g++ 10.0.1 version. Codes run w
Why is it that when I read SOFTWARE\Microsoft\Cryptography\MachineGuid from the registry, my program is detected by the Windows Defender as a virus?
On Ubuntu 20.04: sudo apt install libopencv-dev Result: kwu@Dev-KWu:/usr$ find . -name "*opencv_imgproc*" -o -name "*opencv_core*" ./lib/x86_64-linux-gnu/libope
I am working on defender/space invaders game. I have drawn bug sprite and a bullet sprite. I shoot at the bug with a bullet but when the bullet hits the bug it
Lately I've been learning something about blockchain and I decided to try to make one in c++, without libraries that were made specifically for that, just with
What are undefined reference/unresolved external symbol errors? What are common causes and how to fix/prevent them?
I tried to write a custom type from a book, my compiler gives an error E0393 using a pointer to an incomplete type of the "String" class::Srep" is not allowed i
I want to Update an integer multiple times in frame so that the fragment-shader can access the right index of a texture array for different objects. I first tri
I implemented Poco in my C++ application for Windows in VS 2019 using tips from this post: How to use Poco::ZIP to compress/decompress zip file I have figured o
bool check(const char *text) { char c; while (c = *text++) { if ((c & 0x80) && ((*text) & 0x80)) { return true;
I have a cpp code implementing a media player behavior on Android. I'm using the media player for playing a mp4 file however, I need to draw text above this. Fo
I have this almost solved. I've found this function: void webkit_web_view_save_to_file (WebKitWebView *web_view, GFile *file,
I am trying to get the output of a Python script with qprocess but I can't seem to make it work. I think the issue is with the script since I can get the output
I want to use a lambda to evaluate (switch-case) some conditions and return a lambda accordingly. const auto lmb1 = []() { printf("1\n"); }; const auto lmb