D
Daniel Vukadinovic
Can anyone explain me these things in C++?
1.What is :: used for like in the next case:
if(....
{
...
:ne;
...
}
....
2.Do I understand this right?
void something::something:something(...
Is the last something followed after only one : a subclass?
3.What does this mean?
struct something
{
...
} a; ->> what is this used for?
4.Static, const and mutable
Now I read alot about that but I never really understood when do we use
static, const and mutable with variables? I know const is used when we
don't want the value to be changed, but what's static and mutable? I
would appreciate examples so I could understand it better.
1.What is :: used for like in the next case:
if(....
{
...
:ne;
...
}
....
2.Do I understand this right?
void something::something:something(...
Is the last something followed after only one : a subclass?
3.What does this mean?
struct something
{
...
} a; ->> what is this used for?
4.Static, const and mutable
Now I read alot about that but I never really understood when do we use
static, const and mutable with variables? I know const is used when we
don't want the value to be changed, but what's static and mutable? I
would appreciate examples so I could understand it better.