From a6fb61db10a93801065d34d19fb6d7166511e58d Mon Sep 17 00:00:00 2001 From: Syndamia Date: Thu, 31 Mar 2022 09:37:42 +0300 Subject: Made naming and slight formatting adjustments --- Year 1/Object-oriented Programming/Solutions Sem. 03/ex4/Bytex.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Year 1/Object-oriented Programming/Solutions Sem. 03/ex4/Bytex.cpp') diff --git a/Year 1/Object-oriented Programming/Solutions Sem. 03/ex4/Bytex.cpp b/Year 1/Object-oriented Programming/Solutions Sem. 03/ex4/Bytex.cpp index 42a03c6..bc2bee6 100644 --- a/Year 1/Object-oriented Programming/Solutions Sem. 03/ex4/Bytex.cpp +++ b/Year 1/Object-oriented Programming/Solutions Sem. 03/ex4/Bytex.cpp @@ -1,6 +1,8 @@ #include "Bytex.h" -char Bytex::digitToHexChar(unsigned int digit) { +/* Private functions */ + +char Bytex::digitToHexChar(int digit) { if (digit < 10) return '0' + digit; return 'A' + digit - 10; @@ -22,6 +24,8 @@ void Bytex::hexValToByte() { byteVal = hexCharToNum(hexVal[0]) * 16 + hexCharToNum(hexVal[1]); } +/* Public functions */ + Bytex::Bytex() : Bytex('\0') {} -- cgit v1.3.1-23-gd82d