August 22nd, 2013, 11:15 PM
How to write a byte form input to output files?
I am trying to write a tester for a function that takes writes stuff :flame:
August 24th, 2013, 02:53 AM
> How would I write a tester for something like this?
I guess you start with int main ( )
Seriously, if you can't write a main to test this, how are you going to write a main to do the larger task of whatever it is you're trying to do?
Create a simple test file with something like "ABC123", which you know what it looks like at the binary level.
Open a stream, initialise your class, call it in a loop and print the bits.