I am having a problem changing the value in line 47. I can't find the documentation that shows how to change the data. Eventually I will be moving this to the CSector.h class. I am just testing to see if the desired action takes place in the sector class.
C:\Users\jason and veronica\Desktop\Dashboards\Projects\Enemy Mine\main.cpp||In function 'void movetest(std::string)':|
C:\Users\jason and veronica\Desktop\Dashboards\Projects\Enemy Mine\main.cpp|47|error: 's0001' was not declared in this scope|
C:\Users\jason and veronica\Desktop\Dashboards\Projects\Enemy Mine\main.cpp|49|error: 'a' was not declared in this scope|
I don't recall having this problem before. But I suspect I will have to use pointers to do the deed. I am having such problems with pointers, even with all the tutorials I am reading about them.
Some insite will be appreciated. Thanks ahead. :o)
You need to pass s0001 into your function, as a pointer or otherwise, or my personal suggestion would be to add this function to your 'CSector' class as member function.
Thank you computergeek01. I was planning to do that. I don't know why I didn't just do that in the first place. And it was just gonna be a simple test. It became more complicated though. Time to pop the function in. I guess I just needed a little push. It sure would solve a few problems and it needs to go in anyway. Thanks again. But could you tell me how to pass s0001 as a pointer? It would help a lot in the rest of the program.
Well, the only reason I ask is so you can slap me with the logic as to why one or the other would be a serious miscalculation in judgement. (Or something like that.) I am still having problems with pointers and references.