i'm trying doing a static clas, but i, always get errors... now i have head pain:(
class Pessoa2
{
private:
static string strnome;
public:
Pessoa2()
{
strnome="ana";
}
void setnome(string value)
{
strnome=value;
}
static string getnome()
{
return strnome;
}
};
just seen these static class, what i'm doing wrong?:(