Is there some c++ proposal for Integer literal for fixed width integer types like this? // i's type is unsigned int auto i = 10u; // j's type is uint32_t auto j
The below code is trying to extract the red, green and blue channel of a pixel value and performing an arithmetic with another set of RGB values. It seems that
the code as follow: #include <boost/process.hpp> #include <iostream> int main() { // cmd // std::string cmd{"g++.exe"}; // ok std::str
In my application, I use two scrollbars and handle the movement of the slider in them using the function: afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrol
I tried doing the if else statement for the buzzer. But it finishes the song code first before the else statement runs. I tried running the code and it starts t
I'm trying to swap the 2nd and 4th elements in a list, but I can't figure out how to do this. I tried to use vector notation, but it didn't work. list<int>
im trying to build a simple element character type game in c++. Having an abstract class Personaje and a child class called Agua. Im having an error for undefin
I'm writing a c++ program to open a file with the user-defined file name. And then using the put() function to let the user write into the file until a newline
I'm working with Qt 5.15.2 in Qt Creator 6.0.2. I have a program that uses a .lib file which was built in both debug (_ITERATOR_DEBUG_LEVEL = 0) and release (_I
In C++, can I check whether a certain function has been declared "extern C" or not? I don't mind checks restricted to the current translation unit. I'd like to
I need to implement sending a heartbeat message to a third party server with regular intervals. The server uses these heartbeat messages to determine if that th
I am a beginner in C++. And I don't understand this error. I just need you to explain me. I try to show a .sqlite database in a QTableview. The problem come fro
I used to work in visual studio a lot but for competitive programming I switched to VS-CODE because it is faster and I have special extensions. But I have some
On the unmanaged side I have short* m_pLevels[4], I need to get this array of pointers to the C# side so I can then use each point to copy from the unmanaged si
The first frame takes forever to render, and I've narrowed it down to my second call to glDrawElements(). How weird. Here's the relevant code, obnoxious logging
I have a database in a separate widget class datbase.ui that I insert as tab in mainwindow.ui. I want that when initializing the connection in the class datbase
I'm expecting to use AlignArrayOfStructures, however it's only available in clang-format 13. So I set Custom clang-format.exe to C:/Program Files/LLVM/bin/clang
i have a problem in building the aws c++ sdk Ec2 library on linux. I followed the steps bellow: git clone --recurse-submodules https://github.com/aws/aws-sdk-cp
Alright, this is driving me nuts and I have no idea what's going on. I have some code I'm making for school that basically takes in a string and a start and end
Seastar allows writing such code, by using a seastar::thread object which comes with its own stack. The seastar::thread allocates a 128KB stack, and runs the g