Questions tagged as 'c++'

0
answers

Generate int from RGB

I'm doing a GUI program with Arduino on a 16-bit lcd display . For me to get a little more color control, how can I get an int (like 16-bit color) from RGB? I'm using this display:     
asked by 01.04.2018 / 22:56
1
answer

Error in visual studio runtimelibrary error

You are running the following runtimelibrary error:    LNK2038 mismatch detected for 'RuntimeLibrary' error: value   'MD_DynamicRelease' does not match value 'MDd_DynamicDebug' in   Aimbot.obj INDIGO C: \ smef-s-Indigo-Remasterd-master \ INDI...
asked by 13.04.2018 / 19:13
0
answers

Removing item X from an L list

I need to get the user to remove the item that he requests from the list, but I have no idea how to do it. Outline: #include <iostream> #include <list> #include <string> using namespace std; struct aluno { int matric...
asked by 30.03.2018 / 06:30
1
answer

Runtime of a code snippet with precision greater than 0.001 seconds

I need to compute the runtime of sorting algorithms. I've done the following: steady_clock::time_point t3 = steady_clock::now(); quickSort(v, 0, n - 1); steady_clock::time_point t4 = steady_clock::now(); duration<double> time_span...
asked by 09.04.2018 / 17:16
0
answers

istreambuf_iteratorchar (file) does not work on android NDK

Well I have a project of a gameboy emulator for android, I'm writing using the android NDK for the emulation part, and the java for the graphic interface itself. Well first I started writing a small class to read retrieve the cartridge header...
asked by 29.03.2018 / 18:44
0
answers

RFID Read Pause

I'm developing an RFID reader using Arduino + RFID module RDM6300, I am able to perform the readings of the cards, however, the readings are being repeated several times when the card is approached. I have already tried using delay(); and...
asked by 28.03.2018 / 20:25
1
answer

How to mount the operator == of a struct?

I have the following structs: struct Arco { int i, j; Arco () {}; Arco (const Arco& obj): i(obj.i), j(obj.j) {}; Arco(int _i, int _j) : i(_i), j(_j) {} }; struct ARCO_TEMPO { Arco a; int slotTimeU; int slotTimeV; A...
asked by 07.04.2018 / 23:12
0
answers

Microchip: ADC_GetConversion

I'm developing an alarm and the "actions" will be performed by voltage dividers (ADCconverter). voltdivneg = ADC_GetConversion(VOLT_DIV_NEG); voltdivpos = ADC_GetConversion(VOLT_DIV_POS); There are 3 states: STAND-BY, FAULT, and ALARM. Vout...
asked by 19.03.2018 / 15:46
1
answer

How to solve the problem of accentuation in the terminal?

I'm writing some strings on the screen using the Opengl library and some of the stored words are accented words, for example: república checa , where the output ends up being: repblica checa can solve this problem without using exte...
asked by 30.04.2016 / 01:03
0
answers

C ++ - How to pass a string to a class

I have a problem when I try to pass a string to a class. In short, in the main program I'm going to read this string and move on to the class: cout << "----- Vamos as opcoes! -----" << endl; cout << "(1) - Adicionar um funcio...
asked by 27.03.2018 / 03:16