• Source
    1. #include <iostream>
    2. using namespace std;
    3.  
    4. int main(){
    5. short int room = 205,
    6. _floor = 10,
    7. suite = 2;
    8.  
    9. unsigned short int roomPrice = 200; long int savings = 2000000000;
    10.  
    11. std::cout<< "Your room number is " << room
    12. << ", floor " << _floor
    13. << ". Make sure you enter suite "
    14. << suite
    15. << std::endl;
    16.  
    17. cout << "The price for that room is $" << roomPrice << " dollars\n"
    18. << "No worries, my saving account is showing that I have $" << savings
    19. <<" dollars" << endl;
    20.  
    21. cout << "I can't pay for this, im too poor.\n" << endl;
    22.  
    23. std::cout << sizeof(room) << " bytes" << std::endl;
    24. std::cout << sizeof(_floor) << " bytes" << std::endl;
    25. std::cout << sizeof(suite) << " bytes" << std::endl;
    26. std::cout << sizeof(roomPrice) << " bytes" << std::endl;
    27. std::cout << sizeof(savings) << " bytes" << std::endl;
    28. return 0;
    29.  
    30. }