i want to to able to access to a class's vairable but this varible is not declared class's header file
it is in the cpp file i couldn't write a method that acces to it because methods cannot access it(since the variable is not in the header file) how can i solve this problem
enes
0
Newbie Poster
Recommended Answers
Jump to PostThe only way you could possibly access it is if the variable is global and non-static. In that case you could declare it with the extern keyword in your program. If your program links then you should be ok. If it doesn't link, then tough luck, you will not be …
All 2 Replies
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
WaltP
2,905
Posting Sage w/ dash of thyme
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.