Questions tagged as 'c++'

1
answer

Error- taking address of temporary -free C ++

#include <iostream> #include <set> using namespace std; void leerConjunto(set<int> *, int); void imprimirConjunto(set<int> *); set<int> opUnion(set<int> *, set<int> *); set<int> opInterseccio...
asked by 24.09.2017 / 23:47
1
answer

how to create the body of a thread and use it in google test

First, forgive if the title is not the most appropriate. I am trying to write a google test, which launches several threads, as a testlogging. This would be the function that the threads would execute. void log(std::vector<int>&am...
asked by 19.09.2017 / 18:46
1
answer

Doubt with QTranslator

I create a small test interface consisting of two buttons, a table and a combobox to change the language. All without Designer. botonRedo = new QPushButton(QIcon("../Prueba/iconos/rehacer.png"),tr("Rehacer")); botonUndo = new QPushButton(QIcon...
asked by 25.09.2017 / 11:05
1
answer

Error including header in QtCreator project

My question is how can I solve the following error: In this case you have two different projects in QT. One of them contains a class called "Numbers". File .h: #ifndef NUMEROS_H #define NUMEROS_H class Numeros { public: Nume...
asked by 26.09.2017 / 17:09
0
answers

C ++ programming based on interrupts for communication of two DTE (in series)

My specific question is: In the code I have there is a line that is: outportb(Puerto+3,0x80);/*Pone DLAB en 1*/ From what I read this DLAB is a bit that is in the LCR (Line control Register) bone port + 3, access the LCR register, and w...
asked by 06.09.2017 / 09:02
0
answers

Compile Unity game with native dll

I am trying to mount my Unity project that I created with native code of C++ . I have the library in the root directory of the project and I use this library with dllImport . When compiling the program and creating the .exe...
asked by 01.09.2017 / 12:08
1
answer

Icon in Allegro

I'm doing a little game with Allegro 4.2.2 in Code::Bloks 16.01 and I would like to add a custom icon. Searching the Internet I found that adding a resource file to the project could be done, but I only managed to get the executabl...
asked by 31.08.2017 / 19:15
1
answer

Communication between opencv c ++ and Unity3D

I have a problem that I hope you can help me solve: I have to try to pass a cv :: Mat from c ++ to C # to convert it into a Texture2D. That is, I from c ++ capture the image of my Webcam using opencv. Once I have obtained the frame in cv :: M...
asked by 25.08.2017 / 10:50
0
answers

Problems with c ++ projects in visual studio 2013

I try to create a win32 console application project in c ++ language and I create the solution and the project but without the folders that are created by default and I also close the visual studio and I can not even create a cpp file...
asked by 18.08.2017 / 22:03
2
answers

C ++ - Different Ouput (Sum and product of Vectors)

I'm trying to add to a third vector. The addition and multiplication of two different vectors. However I can not understand why the output values are not as expected. The methods I use are: show, add and make Product. void mostrar(int vecAM...
asked by 15.08.2017 / 18:01