Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

Get variable value in different classes

$
0
0

@saraap13 wrote:

Hi guys!

How could I get the value of a variable in a different class where it is declared?

For example....

class ofApp : public ofBaseApp{
	public:
            int m;
}

How do I get the value of m in another class?

Thank you so much!:slight_smile:

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles