Hi...
I am C++ beginner and would like to know how to create array of class without default constructor.
Class myClass {
 public :
    myClass (int a, int b);
    myClass (double a, double b);
 private :
    int ia;
    int ib;
}
I want to create, say 100 array, which parameter can be from a loop.
 
  myClass myC[100];
  
  so, 
   myC [0]  --> a=0   b=0
   myC [1]  --> a=1   b=1
That is.
Thank you,
Abu 
  
 
 
  
 
You can't.
The declaration myClass myC[100]; implies that myClass has a default constructor.
 
 
  
 
Thanks for the answer.
Abu