ch1-Hex

Chapter_1     Print Modulus







Hex.cpp


#include <iostream>
using std::cout;
using std::endl;

int main()
{
int x = 0xAa; // 0x is normally followed by lowercase letters a..f
int y = 0XaA; // 0X is normally followed by uppercase letters A..F

cout << "x = " << x << endl;
cout << "y = " << y << endl;

return 0;
}
/*
g++ Hex.cpp -o Hex
./Hex
x = 170
y = 170
*/









Chapter_1     Print BACK_TO_TOP Modulus



Comments

Popular posts from this blog

Contents