cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
need to understand how this code works
need to understand how this code works
Nov 20, 2015 at 7:50pm UTC
aliyesami
(57)
I found this code online and want to use it but I want to understand how it works. I am not sure what this operator means "/=" ?
how is this code converting int to bcd ?
while (uiValue > 0) {
uiResult <<= 4;
uiResult |= uiValue % 10;
uiValue /= 10;
}
Nov 20, 2015 at 8:14pm UTC
closed account (
48T7M4Gy
)
uiValue /= 10;
is the same as
uiValue = uiValue / 10;
Topic archived. No new replies allowed.