What is wrong ???

Ok so I'm trying to make an array of a structure with constructor arguments but it's not compiling

Code 1
1
2
3
4
5
6
7
  stud(char a[],int b,int c,int d,int e, int f)
  {
   .
   .
   .
   .
  }

Then I use this constructor to do the following but It does not compile...
Code 2
 
stud obj[5]={{"name1",1,2,3,4,5},{"name2",1,2,3,4,5},{"name3",1,2,3,4,5},{"name 4",1,2,3,4,5},{"name5",1,2,3,4,5}}; 
It works fine here, please post the error message...
Last edited on
Topic archived. No new replies allowed.