Hey, I'm working on an assignment for a class of mine that requires coding the Burnt Pancake problem using pointers. I had a quick question about something that has been puzzling me. This directly below is a part of one of my functions in a class I made, and I am wondering how do I make stack from line 6 an undeclared identifier?
That's another thing that confuses me sometimes too. How do variables (in terms of classes) work when they first appear in the function argument? In the header you just say the function title and the types in it. Then in that class's cpp file you make a name for that argument in the function declaration line.
Its not initialized by normal means that I can find, so how does that work?