Hello, I have been learning c++ and sfml and I've been learning as i go along so i don't get bored. I have run into an issue with a class that i have created. It's my first attempt at creating a class so i guess my approach is wrong.
C:\Users\adil\Documents\Coding!\SFML GAME\main.cpp:23:9: error: variable or field 'run' declared void
C:\Users\adil\Documents\Coding!\SFML GAME\main.cpp:32:5: error: variable or field 'processEvents' declared void
C:\Users\adil\Documents\Coding!\SFML GAME\main.cpp:38:5: error: variable or field 'update' declared void
The private partition is for storing values not operations. You need to put your methods in the public partition. Also methods are functions so they need braces to denote this fact.
since i dont have w/e library that is i cant run it through my compiler to check but i think it should probably look something like this.