student student Interview Question
Students StudentsCountry: GUYANA
1. this is C++ and not C
2. no abstraction at all, there should be a function that performs the encryption/decryption AND a test-program to get these from the user and pass on to the function.
3. Buffered, binary read should be used, not lines - it is ways more effective
I am not going to draw a flow chart, but will include the working program. In essence it does the following:
1. Gets key
2. Opens input and output files
3. Reads every line from input file
4. XOR's every character from the read line and puts into a temporary buffer
5. writes the buffer to the output file
}
- nindza November 08, 2012