[Solved] Passing an integer as the argument of a constructor function
In main, queen(ent);, rather than creating a temporary queen using the constructor taking an int, tries to create a queen object called ent using the default constructor. Since ent already exists as an int the compiler throws an error. The solution is to create the object like this: queen q(ent); 3 solved Passing an integer … Read more