Hey everyone, I was just wondering if anyone could explain why this code won't compile. The compiler says that max is an ambiguous symbol. I just don't see where the ambiguity is.
and here's the codeCode:app.cpp(8) : error C2872: 'max' : ambiguous symbol could be 'app.cpp(4) : const int max' or 'max'
thanks for the helpCode:const int max=100; class queue { char q[max]; int putter,getter; int size; public: queue(int a) { if (a>max) a=max; if (a<=0) a=1; size=a; putter=getter=0; } };