The simplest way to do this is to declare constant 5-byte arrays or constant array of 5-byte arrays . const char current[5]={ ... }; const char voltage[5]={ ... }; const char energy[5]={ ... }; ---- or ---- const char all_kinds[25][5]={ ... } where the ... are the values of your constants.
↧