#include <iostream>
class CTest {
int a;
int b;
int c;
int d;
};
int main() {
std::cout << "sizeof(CTest) : " << sizeof(CTest) << std::endl;
std::cout << "sizeof(int) : " << sizeof(int) << std::endl;
std::cout << "sizeof(CTest) / sizeof(int) : " << sizeof(CTest) / sizeof(int) << std::endl;
}
sizeof(CTest) : 16
sizeof(int) : 4
sizeof(CTest) / sizeof(int) : 4
static const char *s_apNames[];
CTuneParam &operator = (int v) { m_Value = (int)(v*100.0f); return *this; }
works too but v is already an integer