#include #include using namespace std; typedef unsigned char byte; typedef signed char sbyte; struct observation { unsigned int year: 12, month: 4, day: 5; int mint: 9, avgt: 9, maxt: 9, snow: 11, rain: 11, wind: 8; }; int main() { if (sizeof(observation) != 23) { cerr << "Look out! sizeof(observation) is " << sizeof(observation) << ", not 10\n"; exit(1); } cout << "OK so far\n"; }