I have a class containing an enum class. class Shader { public: enum class Type { Vertex = GL_VERTEX_SHADER, Geometry = GL_GEOMETRY_SHADE
Is it possible to change the default Working directory in Qt Creator to specified path? Or is it possible to set Working directory in .pro file? PS: I know ab
When I'm trying to print the values of an array, its memory location is getting printed instead of values. What am I doing wrong? int main() { int list[3];
I have a C++ class Collection that manages a std::vector<Element> (a private member of the class). From C++ I can iterate through the vector using the b
I am working on an assignment that is supposed to perform a survey tally on people's favorite beverages. Ideally it will continue asking the user to submit a fa
I am trying to follow along with a tutorial that was designed for UE4. However, I was wanting to play around with UE5 (since it just came out). I was able to fi
I have a program that runs from VB/Excel and executes a C++ program in the middle of it. I have two (I think related) questions: I capture the return value fr
I am learning about macros and I want to know that whether it is possible to create a macro that repeats a given character literal a given number of times. For
When I import a module I built, I get this boost-python related error: Traceback (most recent call last): File "<string>", line 1, in <module> Im
I want this pixelated look in sdl2 for all the object in my screen
I am quite new to C++, I know that shift operator in C++ is overloaded. But as how we can do shift operation within printf statement in C can we do similar shif
I have a simple flow Click on QPushButton QMenu with a couple of actions appears Navigate through the QMenu using key clicks or mouse move. (Triggering actions
At some I need to register some objects with qwebchannel and futher in the application I need to register a new object to the qwebchannel. The thing is that it
IntVar v = model.intVar("v", 1, 12, true); // or v= model.intVar("v", 20, 30, true); I want the value of IntVar v not only in [1,12] but also in [20,30] and i
I am using python to call methods in a shared C++ library. I am having an issue converting a numpy 2D array to a C++ 2D array. I need to enable the following fu
I have before created a simple packet sniffer using python, with the following code: import socket import os import time host = "192.168.0.164" if os.name ==
I'm trying to code this really simple addition program for practice. It takes in a list of inputs and stores it in a vector. Then it grabs each consecutive elem
To value-initialize an object of type T means: ... — if T is a (possibly cv-qualified) class type without a user-provided or deleted default constructor,
I have an array with sections of touching values in it. For example: 0 0 1 0 0 0 0 0 0 0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 2 2 0 0 0 0 0 0 0 0
The C++ standard says that unqualified names from nondependent base classes are preferred over template parameters. What is the reasoning behind this? The follo