Hi, I'd like declare float spec[4]; as private member of a class; my problem is that I need do something about this (declare and initialize but inside declare of class seems not possible):
Qt Code:
  1. float spec[]={.4f,.4f,.4f,1};
To copy to clipboard, switch view to plain text mode 
I tried declare
Qt Code:
  1. class myClass {
  2. float spec[4];
  3. };
  4.  
  5. myClass::myClass() {
  6. spec[]={.4f,.4f,.4f,1};
  7. }
To copy to clipboard, switch view to plain text mode 
but this get an error;
Do I make a for cicle to initialize spec???? Thanks