I want to make a game using SDL2, but I'm unable to compile and/or run my code, please help! SDL2 is notoriously hard to set up, and it's often the first libr
I'm new to c++ and I have question. I have code like: void FlowState::closeFile() { if (outfile) { //from here struct timeval times[2];
For my project I'm trying to create a free function for a complex number class. It is defined in the cpp file. The function is an overloaded input streaming ope
I need to attain the slope of a linear regression similar to the way the Excel function in the below link is implemented: http://office.microsoft.com/en-gb/ex
Under mac os x I have office 2011 and its excel and VBA, and I have gcc-5.3.0's g++. I played a lot to passing arrays (of numerical built-in types) from VBA to
Namespaces are in many was like classes with no constructors, no destructors, no inheritance, final, and only static methods and members. After all, this kind o
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