labs-edaf30/lab1/coding.cc

10 lines
134 B
C++
Raw Permalink Normal View History

2024-11-12 02:59:00 +01:00
#include <coding.h>
2021-10-27 15:15:47 +02:00
2024-11-12 02:59:00 +01:00
unsigned char encode(unsigned char c) {
return ++c;
2021-10-27 15:15:47 +02:00
}
2024-11-12 02:59:00 +01:00
unsigned char decode(unsigned char c) {
return --c;
2021-10-27 15:15:47 +02:00
}