Summary Files Commits Branches @commit @diff @stats
path: root / Year 1 / Object-oriented Programming / Solutions Sem. 03 / ex4 / Bytex.h
diff options
context:
space:
mode:
1 files changed, 2 insertions, 2 deletions
-rw-r--r--Year 1/Object-oriented Programming/Solutions Sem. 03/ex4/Bytex.h4
diff --git a/Year 1/Object-oriented Programming/Solutions Sem. 03/ex4/Bytex.h b/Year 1/Object-oriented Programming/Solutions Sem. 03/ex4/Bytex.h
index fc39e7a..67f3c57 100644
--- a/Year 1/Object-oriented Programming/Solutions Sem. 03/ex4/Bytex.h
+++ b/Year 1/Object-oriented Programming/Solutions Sem. 03/ex4/Bytex.h
@@ -1,8 +1,8 @@
class Bytex {
- char hexVal[2];
char byteVal;
+ char hexVal[2]; // Normal bytes are up to 255, which is FF in Hex
- char digitToHexChar(unsigned int digit);
+ char digitToHexChar(int digit);
int hexCharToNum(char hexChar);
void byteValToHex();
void hexValToByte();