0

Convert int to two's complement binary

Write in C++ language a command line program with this sintax: save_int <filein.txt> <fileout.bin> First parameter is the name of a file in text format that holds integer numbers with sign in base 10 from -1000 to 1000 separeted by whitespaces. The program must create a new file, with the name passed as second parameter, with the same numbers saved in binary at 11 bit in two's complement.

31st Mar 2017, 9:52 AM
Danix Danilovic
Danix Danilovic - avatar
1 ответ
+ 7
This would be cool if we could actually do it in the Code Playground...
16th Apr 2017, 10:35 AM
SoraKatadzuma
SoraKatadzuma - avatar