labs-edaf30/lab1/coding.cc

9 lines
134 B
C++

#include <coding.h>
unsigned char encode(unsigned char c) {
return ++c;
}
unsigned char decode(unsigned char c) {
return --c;
}