Questions tagged as 'c++'

1
answer

2 cpp in Visual Studio

Good, I'm new to this, and I have a little doubt. The thing is that I have a solution that has 2 projects, one is called Server and another Client (the code of them is almost exact to this link ). Compile without errors both. The problem...
asked by 27.03.2016 / 13:04
1
answer

problem with friend

I have a problem with the compiler g ++ that shows me an error "po_bi was not declared in this scope" however when compiling with msvc compiles me without problem, how can I solve this error? The code consists of 3 parts: complex.h, complex.cpp...
asked by 26.12.2018 / 19:33
1
answer

Algorithm on dice game (two players)

The problem I want to solve is not to get a solution to the problem, but to make it more efficient , in particular, go from O (N²) to O (N) or O (N) log (N)) if possible. Context: problem raised at the university about a dice game . Basi...
asked by 19.12.2018 / 18:17
1
answer

set_where_condition in Comboboxdelegate with selected value in another comboboxdelegate

I have two comboboxdelegates . BlGenericComboBoxDelegate *cbd_id_tipo_tubo = new BlGenericComboBoxDelegate(mainCompany(), this); cbd_id_tipo_tubo->set_foreign_table("presu.tipo_tubo", "id", "tipo"); cbd_id_tipo_tubo->set_f...
asked by 11.12.2018 / 11:47
1
answer

Luhn Algorithm Generator

Good I would like to ask for help with a project that I have to do is generate a numerical range of 10 digits and save it in a file, try to do something in c ++ but the vectors do not allow me to process such large numbers. What could I implemen...
asked by 10.12.2018 / 07:32
2
answers

Doubt with linked lists (pointers) C ++

The exercise in question is this: I already have this code in the header: #ifndef HEADER_H #define HEADER_H7 //Tipo dato Nodo struct Nodo { int dato; Nodo* izq; Nodo* der; }; //Tipo dato Estructura struct Estructura {...
asked by 21.03.2017 / 01:41
1
answer

C ++ error when making an input with cin or getline (std :: cin, var) returns a loop when writing with spaces or a v

When requesting data and placing a space, when using cin > > temp.name ;, it gives me an error that causes a loop of the 2 while at the same time or, when using getline (std: cin, temp.name);, the question jumps to me. The code is as follo...
asked by 12.12.2018 / 19:15
1
answer

How to make an .exe in linux and qt

Last mistake I get when doing make: I've already done the mxe root and the make thing but when doing the make it gives me this    make [1]: i686-w64-mingw32.static-g ++: The program was not found   Makefile.Release: 333: failure in the instru...
asked by 15.12.2016 / 03:42
3
answers

Error compiling, help with POO in C ++

I am learning POO programming and I have a small mistake when trying to do my first "object". You give me this error.    C: \ Users \ Manflack \ AppData \ Local \ Temp \ ccf4P5ij.o poo3.cpp :(. text + 0x181): undefined reference to 'Person ::...
asked by 12.12.2016 / 02:01
1
answer

c ++ error passing 'const std :: vectorNode' as 'this' argument discards qualifiers

I am implementing a minimal path search algorithm, and I get several errors that I do not understand: set< vector<Nodo>>&::iterator it; for(it=nodos_visitados.begin(); it!=nodos_visitados.end();it++){ for(int i=(*it);i&l...
asked by 13.11.2018 / 20:48