Posts by Israel silva barbara • 64 points
3 posts
-
2
votes1
answer302
viewsA: Commentary count // and /* */ in C
Hello. I recommend that you exchange fgets for fscanf; int line_size = fscanf( pFile, "%s", &buff_linha); for(int i = 0 ; i < line_size ; i++ ) { // realiza a contagem } Another approach…
-
-1
votes1
answer266
viewsA: "Undefined Reference" in the constructor of a C++ function
Try to use: In the class definition declares: IRrecv* _receptorIR; //Objeto do tipo IRrecv decode_results* _bufferSinalRecebido; //Objeto que armazena o sinal recebido And put the builder this way:…
-
3
votes2
answers1283
viewsA: How to convert ASCII to binary?
Basically what the code is doing on the line converted += (byteArray[i] & 0x80) > 0 ? "1" : "0"; is to compare the most significant bit of Bytearray and checking whether it is 1 or 0 by doing…