Quantcast
Viewing all articles
Browse latest Browse all 40524

Seeding a random number

Okay so I gave it a try as hubis suggested and it worked! But I am still a little confused. My teacher told me in class that all variables must defined in the "ofApp.h" section because If we define a variable in say "ofApp::update()" then no other section will be able to see the variable.

What I am seeing now is that you should define all variables up there however functions do work throughout the different sections?

So in other words if I am understanding this correctly I do want global variables and I do not want global functions?


Viewing all articles
Browse latest Browse all 40524

Trending Articles