2 questions - classes and variables
2 Questions ->
1 How do I change a float into an int without getting a warning?
2 I have a large project and have split it into about 14 files, how do I get a class variable to be read in another part of the program?
player (name, age);
player player01(James, 21);
cout<< player01.age; // This line works correctly :)
cout<<player01.age; // This line doesn't work, I can't get the class to read variables made in another program :(
thanks for the quick reply
I was hoping I could get an answer within 48 hours so I am very happy to get it this quick :)