Original Post
Okay so im following Lazy Foo's sdl tutorial number 9:
http://lazyfoo.net/SDL_tutorials/lesson09/index.php
He writes his whole class and function within one .cpp file
I took a different path and made a header file and an implementation file for the button class
The problem im getting is when im making the function in the implementation files, they use global variables from the
main file, and it gives me a red squiggle line saying the variable is unidentified, but its not.
im attaching my project for all of you to see and help me
ignore the lesson09.cpp file. im just using that as a guide to write my own code.
http://lazyfoo.net/SDL_tutorials/lesson09/index.php
He writes his whole class and function within one .cpp file
I took a different path and made a header file and an implementation file for the button class
The problem im getting is when im making the function in the implementation files, they use global variables from the
main file, and it gives me a red squiggle line saying the variable is unidentified, but its not.
im attaching my project for all of you to see and help me
ignore the lesson09.cpp file. im just using that as a guide to write my own code.