Questions tagged as 'c++'

2
answers

Doubt with the builders

I need to create two constructors one of them by default and here I have the following doubt, both constructors must have the same name? For example: CPartido::partidoVacio() { //Valor por defecto m_puntosLocal = 0; m_puntosVisitant = 0; m_no...
asked by 14.03.2017 / 00:55
1
answer

Doubt when defining vector in Pile

Let's imagine that we have the typical Pila class: template <typename tElemento> class Pila { public: ......... private: tElemento *elementos; //Vector de elementos int Lmax; //Tamaño d...
asked by 04.04.2018 / 18:55
1
answer

Doubt with Operator Overload Exercise + and -

The exercise asks me to implement the addition and subtraction each with a single member method. And you have to be able to execute the following code: int main() { Punto p(12.34,-56.78); Punto r,s;...
asked by 15.04.2018 / 21:05
1
answer

"SSL connect error" connecting to Proxies using libcurl and C ++, a little help?

I wanted to buy a huge list of proxies that I have because I'm only interested in those who use the https (SSL) protocol and those that are not in China. Looking for a quick way to do it I found this function. string proxyWorks(string ip, int...
asked by 20.04.2018 / 20:30
1
answer

What is the proper way to manage multiple possibilities?

Each possibility has an answer. I know it should be done with switch / case , but I understand that it only works with constants, and what I use is a variable, right? I tried to use it and it gave me syntax errors. What I have do...
asked by 09.03.2018 / 16:38
1
answer

Stuck reading YouTube video with C ++ and wxWidgets

I am testing the following code with a YouTube video and it stays on hold when it reaches the Read function ... it seems that it does not receive any data and after a while the socket disconnect and the application ends normally. int MainApp...
asked by 11.04.2018 / 07:17
1
answer

Data entry via std :: getline does not wait for the user to enter the string

I try to make a program in C ++ to store, search and replace student data, but in the case 3 (to replace data) I have problems with data entry type string. Since in the part where the user must enter the data that will replace the old...
asked by 26.11.2017 / 04:17
1
answer

Help with reference pass in C ++?

Hi, I'm "doing" a game like practice ... I need to pass by reference a player data type to a function in the enemy class, I can not directly add the "jugador.h" in "enemy.h" since it's included in another header, that's why I need...
asked by 25.01.2018 / 04:17
1
answer

Is it possible to load a list of words in an array from a text file?

Hello, as the question says, what I want to know is whether it is possible to load a list of words in an arrangement the way I am doing it. If someone can help me please here is a fragment of the code: #include<iostream> #include...
asked by 16.03.2018 / 17:38
1
answer

Generating a shared library of a project in c ++ with OpenCV

I have a C ++ code in visual study in which I use OpenCV to perform certain functions. So far I have had to generate a DLL to integrate it into Unity, but now I have to create a .so to integrate it into Unity and then create an Android applicati...
asked by 29.09.2017 / 12:19