I'm trying to create a static member in a class so I do not need to instantiate the class to get the value of the class.
In the examples I found on the internet, it references members int .
In my case I want the static member to be a...
I'm serious about studying programming and I chose the QT framework, when I was with a dualboot on my computer there was this problem that I'm having right now after removing the dualboot in> and install only Ubuntu 14.10.
In Ubuntu installe...
Hi, I would like to know how to change the output encoding of C ++, knowing that the default encoding is ASCII.
I have already tried with the <windows.h> and <tchar.h> libraries, in the following code:
int main(){...
How to make this message flash on the screen, stay centered and how to change the message color?
#include <iostream>
#include <cstdlib>
#include <windows.h>
using namespace std;
string mensagem;
int m...
How do I run a Lua block within a function in C ++?
The idea would look something like:
int main() {
tipodavariavel script;
script << "print('Ola mundo')";
executar(script);
return 0;
}
I have an exercise that says I have to create a foundation. This basis has two derivatives. I have to do a cast of the derived class (1) for the derived class (2) and the derived class (2) for the base class. How should I do an exercise like thi...
I have this little problem, I searched a lot on the internet and in the documentation but I did not find anything related, I need to know the accumulation value of each circle generated by the function, for example:
circle of center (x, y) radiu...
I had to implement my own sort using the sort sort. However, the simple code (I analyzed several times, and for me is correct) gives strange results.
template <typename T> void swap(T& var, T& var1)
{
T temp = var;
var =...
I wanted to convert my C ++ code to JavaScript so I could use it in web pages. How can I do this? For what I researched Emscripten does this, but I do not know how to use it.
How does it work?
How to use it?
What are your capabilities?...