I was reading some article about c functions and i don't know c++. I came to an operator that looked like two colons ::, and i couldn't find it in my book about C. Is it a C++ operator?
thanks
- Ytaipsw
I was reading some article about c functions and i don't know c++. I came to an operator that looked like two colons ::, and i couldn't find it in my book about C. Is it a C++ operator?
thanks
- Ytaipsw
yes its called the scope resolution operator - used with classes
and is not part of C syntax
No No's:
fflush (stdin); gets (); void main ();
Goodies:
Example of fgets (); The FAQ, C/C++ Reference
My Gear:
OS - Windows XP
IDE - MS Visual C++ 2008 Express Edition
ASCII stupid question, get a stupid ANSI
Yes. I don't remember its name but it is used when defining elements of a class (includes static variables) or to access elements of a namespace. I think it's called the scope resolution operator or something like this.