Demo entry 2288565

IDL

   

Submitted by e on Jul 20, 2015 at 23:13
Language: C++. Code size: 213 Bytes.

enum TemperatureScale 
{
    CELSIUS,
    KELVIN,
    FAHRENHEIT
};

struct TempSensorType 
{
    short id;
    float temp;
    float hum;
    TemperatureScale scale;
};
#pragma keylist TempSensor id

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).