Hi . what is my fault . my compiler return this error for method setBBB()
expected primary-expression before '.' token|
#include<iostream>
using namespace std;
class AAA
{
public:
AAA();
void setBBB();
private:
struct BBB
{
int data;
};
};
int main()
{
AAA A;
A.setBBB();
return 0;
}
void AAA::setBBB()
{
cin >> BBB.data;
}
Thanksssssssssss m4ster r0shi