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
for loop variable
for loop variable
Apr 11, 2012 at 4:44pm UTC
htown
(26)
Is there a way to save each byte to a different variable in a for loop?
for (int i = 24; i >= 0; i=i-8)
{
temp = ((memory[2027] >> i)& 0xFF);
cout << hex << temp << " ";
}
Apr 11, 2012 at 6:10pm UTC
Galik
(2254)
Maybe use an array.
Topic archived. No new replies allowed.