I have this constructor for my class student.
student::student( char* rollno , char* name , date dob) :
rollno(rollno), name(name),dob(dob)
{
}
When I write
student s1( "l1f18bscs0322" , "usama" , { 13,7,1998 });
in main, it accepts it in my university I think because its using Visual studio 2013, but It gives error
in home as I am using visual studio 2019. It says no instance of constructor matches the argument list it takes value in double quotes as pointer to constant. What will be the alternate to pass values to this constructor? Because even If I change my constructor protype to constant to pointer so it will give new error that I cannot initialize my non constant members with constant.