float *.... and static float

Hi Folks,
Im just a beginner:

I was reading the documentation and the examples but I dont know what means by:

float * variable;
and
static float variable;

Thanks for ur responses or inputs

hey Edu,

float * size

means, “i want a ‘pointer’ called size, that ‘points’ to a float.” for more on pointers, google ‘c++ pointer’.

static float size

means, “i want a float called size, that exists everywhere within this file or within this class.” for more on static, google ‘c++ static’.

welcome to C++, and good luck! :slight_smile:

you can also find a good explanation about pointers here:

http://wiki.openframeworks.cc/index.php-…-ointers.29.