This is my code:
struct opts
{
int a;
int b;
};
class myclass
{
private:
opts options;
public:
void afunction();
}
//myclass.cpp
void myclass::afunction()
{
if options.a==1
//do something
}
When I compile it I am getting the follwoing error.
error C2061: syntax error : identifier options
What is wrong with it?
;afterclass myclass {...}.