Questions tagged as 'c++'

1
answer

Use of typedef and functions

The objective of the program is to choose a number, 1 stone, 2 paper and 3 scissors. Initially the program stores a number in the subprogram tElement choiceHuman () and then converts that whole value into stone, paper or scissors in the subprogr...
asked by 05.11.2017 / 16:39
2
answers

How to read .dat file and save it in an array c ++

I have to read a file that has this format: Id: 23 Nombre: Roberto Apellido: MiApellido Id: 24 Nombre: Roberto2 Apellido: MiApellido2 And I have to read that file to be able to work with that data but I do not know how to read. I have...
asked by 05.07.2018 / 18:36
1
answer

no matching function for call to error when compiling

I have a question with a program that I did, it is a class to do vector operations, I create two vectors with the constructor of the class, one is passed as a parameter to the function suma() , to add two vectors, which it happens that I g...
asked by 10.02.2018 / 23:11
1
answer

My application loses the typographical font when executing it in another pc, QT creator, c ++

I have created an application with Qt creator in which I use a font that is not standard for window. After doing deploy and executing it in another PC, the typographic font of the whole text changes and this damages a lot in terms of the visual...
asked by 16.10.2018 / 19:31
0
answers

Error compiling with Mysticial / Mini-Pi

I'm trying to compile some programs with Mini-Pi . So far I have been able to compile all but mini-pi_optimized_3_OpenMP.cpp As I understand in GNU / Linux (Ubuntu), in the terminal you write: $ mpicxx mini-pi_optimized_3_OpenMP....
asked by 04.11.2016 / 23:49
3
answers

Declare as an attribute, a pointer to my same type of variable in C ++

My problem is this: I have a class Nodo , which has as an attribute an array of pointers to to the same type (as to make a tree) and then I have a daughter class NodoAvl that must inherit that attribute but the pointers must...
asked by 05.11.2016 / 20:33
1
answer

Why do I get the error that the series starts from 11?

#include <iostream> using namespace std; int fib(int n); int main() { int numero,i; cout<<"ingrse el numero de elementos"<<endl; for(i=1;i<=numero;i++){ cout<<i<<fib(i)<<endl; }...
asked by 03.09.2018 / 03:32
1
answer

I get [Error] expected unqualified-id before '\ x72677629' [closed]

This is the code: /* Programa 01 creado por: Julio Cesar Rodriguez Cardenas MMXVI*/ #include <iostream> #include <string> #include <math.h> using namespace std; 'int main (int argc, char** argv)': { char algoritmo;...
asked by 21.06.2018 / 08:40
2
answers

Printf returns 0

The file ends.txt has two columns, the first one corresponds to the last ending of a number and the second one to the number of times a finished number has appeared in it. The objective of the program is to show the ending that has appeared more...
asked by 15.10.2018 / 12:28
2
answers

getline () does not read line and follows c ++ code

I have problems saving a string with spaces in a variable. void generarTabla(paisesBolillero paises[32]) { void titulo(); int menu(); titulo(); for(int i=0; i<32; i++) { cout << "Ingrese el nombre del pais N" << char(167) &...
asked by 14.08.2018 / 04:53