Questions tagged as 'c++'

1
answer

Static Members String

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...
asked by 22.10.2015 / 23:00
1
answer

How to transform a cv :: Mat into ipcMatrixipcRGB?

Does anyone know if there is an easy way to turn a cv::Mat into ipcMatrix<ipcRGB> ?     
asked by 25.11.2014 / 21:25
2
answers

Error compiling project in QT Creator

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...
asked by 27.11.2014 / 05:55
1
answer

Coding in C ++

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(){...
asked by 02.08.2014 / 18:40
1
answer

How to make the message stay centered and blink on the screen in C ++?

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...
asked by 12.02.2015 / 16:59
1
answer

Run block of Lua code inside C ++

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; }     
asked by 12.02.2015 / 05:53
1
answer

How to do casting between base and derived classes?

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...
asked by 02.03.2014 / 14:39
1
answer

Is it possible to access the accumulator of the hough transform using opencv?

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...
asked by 17.11.2014 / 02:13
2
answers

Sorting does not work

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 =...
asked by 02.05.2014 / 16:56
1
answer

How to use Emscripten?

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?...
asked by 16.08.2018 / 15:52