[Solved] Passing an integer as the argument of a constructor function
[ad_1] 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 [ad_2] solved Passing … Read more