All pastes #23071 Raw Edit

Mine

public text v1 · immutable
#23071 ·published 2005-09-16 06:56 UTC
rendered paste body
// datatype.cpp
// Examples of variable declaration and initialization

#include <iostream>
using namespace std;

int main(){
        const float SO_E                = 2.7182818;
        const unsigned int SO_LIGHT     = (308 * 108);
        const float SO_SOUND            = 340.292;

        short color                     = 100;
        short blind                     = -100;
        int crows                       = -40000;
        int ambrosia                    = 40000;


        cout << "SO_E is: " << SO_E << endl;
        cout << "SO_LIGHT is: " << SO_LIGHT << endl;
        cout << "SO_SOUND is: " << SO_SOUND << endl;
        cout << "color is: " << color << endl;
        cout << "blind is: " << blind << endl;
        cout << "crows is: " << crows << endl;
        cout << "ambrosia is: " << ambrosia << endl;

        return 0;
}