#include <iostream.h>
#pragma pack(1)
class test
{
public:
virtual ~test();
private:
int a;
double d;
float c;
long long l;
};
#pragma pack()
template <typename T>
void sizeoftype()
{
T *t = 0;
t++;
cout << t <<endl;
}
int main()
{
sizeoftype<int>();
sizeoftype<double>();
sizeoftype<float>();
sizeoftype<long long>();
sizeoftype<class test>();
}