hi!
I have created a class with 2 constructors and whenever i try to access it i got the error no match for to call int&
here is the code
class A{
public:
A(){};
A(int i);
int moj_broj;
};
A::A(int i):moj_broj(i){}
int main()
{
A something;
cout<<"before "<<something.moj_broj<<endl;
something(5);
cout<<"after "<<something.moj_broj<<endl;
}