Questions tagged as 'c++'

1
answer

Error filling a vector and displaying each of its positions (c ++) [closed]

I have an idea but it produces an error, and when I finish writing the numbers entered in the console, the numbers do not come out after I find the number "1" in the vector, it may seem simple, but I have not been able to solve it (unless it is...
asked by 24.08.2018 / 00:32
0
answers

Error that will not let me compile file in c ++ / sqlite3

The program throws me an error about an entry not recognized in the code. Referring to this piece of code: if (sqlite3_open("C:\ProgramData\PROISER\ISASPSUS\datastore\dsfile.db", &db) != SQLITE_OK) { printf("ERROR: can't open da...
asked by 24.08.2018 / 19:04
1
answer

How do I update a bool in a .h file?

I have the following code in the .cpp file (not the main): switch (opc) { case 1: while (jugando) { //limpiar pantalla h.limpiar(); //elimina scroll bar h.nosc(); /...
asked by 12.08.2018 / 06:26
0
answers

Compiler error when installing a library

I have installed the criterion library in codeblocks, but it throws me a series of compilation errors and I do not know what is due. main.cpp|6|undefined reference to _imp__criterion_internal_test_setup'| main.cpp|6|undefined reference to '_i...
asked by 11.08.2018 / 01:08
0
answers

Verify that a code (such as invoice or others) is as it should be

Verify character by character. The invoice code must be a string. As for example As-5b-3c-hd (asi deveria ser) 5g-op7-#;jdj. ( este el incorrecto) 1.control the "-" between each 2 characters The characters in the middle of the "-"...
asked by 26.08.2018 / 00:39
1
answer

how to pass the data of the current item in the list to a function?

I have this project that I have been working with for a few weeks .. I am working with lists .. students and subjects .. with this function I register a previously registered student: void inscribirAlumno(Alumno_Inscrito*&listaAlumno_Inscr...
asked by 21.07.2018 / 23:13
0
answers

i2c and PCA9685 under raspberry

I am trying to turn on a series of LEDs using the integrated pca9685 but I can not get it to work. The communication by i2c works correctly but does not pay attention to the codes that I send. This is the code I use: int LED_test() { print...
asked by 10.07.2018 / 13:30
2
answers

QSerialPort - Reading cut

I am having problems to read whole lines from the serial port in linux. I have a gps that connects to the serial port and I can not get the lines read from it to arrive complete. I put the code that I have (taken from the Terminal Example Exampl...
asked by 04.07.2018 / 22:55
1
answer

How to store several structures in another?

I have these three structures in c ++: struct Profesores{ char nombre[30]; double ci; }prof[100]; struct Asignaturas{ char nombre[30]; char id[30]; struct Profesores p_prof; }asig[100]; struct Alumno{ char nombre[30]...
asked by 07.07.2018 / 00:37
0
answers

problems in my makefile

Good afternoon I have a problem with my makefile file, I think it's in the variable "objs=" but I do not see where the fault is. I would appreciate your help. Work environment is windows. My directory structure has: c:\Users\usuario\WORKSP...
asked by 02.07.2018 / 18:53