fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. struct RGB
  6. {
  7. float R,G,B;
  8. };
  9.  
  10. struct Material
  11. {
  12. RGB ambient, diffuse, specular, transmittance, emission;
  13. };
  14.  
  15. int main()
  16. {
  17. cout << sizeof(RGB) << " " << sizeof(Material) << endl;
  18. return 0;
  19. };
  20.  
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
12 60