When I declare a pointer to card (to test) in main
the below code compiles with no error.
but when I declare in main
i get a compile time error.
I hope the mistake I am making is obvious.
I am going back to OOD programming off the cuff, and not following tutorials,
as I want to understand how to code in OOD better. Can someone break down the mistake I am making. E.g why it works with pointer, vs not.