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.
1 Réponse
+ 7
This would be cool if we could actually do it in the Code Playground...