Questions tagged as 'binary'

2
answers

Incorrect value in subtraction of binary numbers using strings

I made this code and it basically gets two numbers in binaries (without separating spaces between bits), and performs (at least in the values in which I tested) the subtraction correctly. I tried to warn myself if one of the numbers is smaller t...
asked by 19.09.2017 / 18:28
0
answers

Conversion between Decimal and Binary in a vector, with elements generated randomly

I need to make a program where 10 randomly generated numbers that are stored in a vector are converted to binary and shown to the user. Not necessarily need to be stored in a vector. I just can not do a loop doing this. I was able to put...
asked by 04.06.2017 / 17:56
1
answer

Get file stored in Bin in MySQL

Live! I'm having trouble getting my PDF file that was stored in a MySQL DB. Whenever I download it, I can not open it because it returns the message that may be corrupted. So I store: $docs = new Documentos(); $assunto = filter_input(IN...
asked by 08.05.2015 / 11:15
1
answer

EclipseGavab: error while compiling .pas file

I installed Freepascal 32bits and I installed Eclipse Gavab 32bits But it is giving error! Any suggestions?     
asked by 14.07.2015 / 05:08
1
answer

Decimal to binary conversion in the C language using the ASCII table

I have to do a program that reads some characters and "transforms" each character into its corresponding number in the ASCII table and then transforms that number into binary and stores it into a vector. My code so far is: #include <stdio.h...
asked by 28.06.2017 / 17:49