labs-edaf30/lab1/coding.cc
2024-11-12 12:53:50 +01:00

10 lines
140 B
C++

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