I have N number of text files. I am trying to read from those files parallelly, so I have forked N threads and each thread gets one text file from those N files
I have a project and I'm new to C++ Well I have to parse a file.txt that contains transaction informations in an ATM. And there is files named as the date of th
I've got a Qt program that reads from csv files and saves the info into a database. There was no problem until i tried to update from Qt 5.15.2 to Qt 6.3. Now,
I have a vector of a struct with 8 different fields (integers and pointers) that serves as a database for my program. Usually only a few of these fields are act
I am in the process of learning c++ and I'm using visual studio code for Mac. I use Code Runner to run my program. My problem is that when I use something from
You might let me explain my little issue. I switched from android studio to visual studio for mobile c++ developing. I installed VS (visual studio) and also an
I'm wondering how 'optimistic locks' (as described e.g. here: https://db.in.tum.de/~leis/papers/artsync.pdf) can be used in C++ with regard to non-atomic data a
I'm working on a project with 6 huge mapping tsv files. In most cases they look like this: First: ID which is a unique String which starts with a char and goes
I have a very inefficient way of counting the combinations of N/2 items from an array of size N. What I do is sort the array to begin with and then loop through
I am trying to get my project "position independent", but it won't give... Some background: nxp imx rt 1024 evk board c++ project compiled both C and C++ files
Background We are trying to "borrow" some code which uses an inline static variable. The code complies, without any warnings, with a C++17 compiler. However w
Since C++20, the constrained auto is introduced by: Concept auto identifier = init Which means, for instance: std::integral auto x = 10; is valid. Also, for n
I have large in-memory array as some pointer uint64_t * arr (plus size), which represents plain bits. I need to very efficiently (most performant/fast) shift th
Normally, to add a database to qt, we would go to the .pro file and add sql, but the project am working on was imported from cmake, so it does not have a .pro f
IMO, C++ template rules seem too restrictive and compiler implementation defined. But here I have a specific behavior I've had a hard time wrapping my head arou
Context: In my company we generate a lot of types based on IDL files. Some of the types require special logic so they are handcoded but follow the same pattern
I am working on a C++ program. I saw multiple lines of logs in this pattern in one of the files: #include <iostream> using namespace std; int main() {
std::unique_ptr has 2 template parameters, the second of which is the deleter to be used. Thanks to this fact, one can easily alias a unique_ptr to a type, whic
I want to change the cursor when the mouse is over a certain control. I'm having the png of my cursor. How do I achieve it in C++ ? I tried like this as descri
I have created an encrypt/decrypt program, when encrypting I store the encrypted QByteArray in a text file. When trying to decrypt I retrieved it and then put