This should be basic C / C++. Are you new to C++?
The error means what it says, "expected class-name before '{' token"., the name before { is not known, may be you missed the include file?
This should be basic C / C++. Are you new to C++?
The error means what it says, "expected class-name before '{' token"., the name before { is not known, may be you missed the include file?
The copy and paste version, and complete zipped example ,from that site compiles just fine here. Perhaps your copy'n'paste skills are the problem here.
Thanks..yes it was my silly mistake,it worked..
Thanks to both of you
Bookmarks