When do we get \"l-value required\" error...while compiling C++ program???(i am using VC++ )
You are trying to use an invalid value for an l-value somewhere in your code. An l-value is an expression to which a value can be assigned.
For example, you might have a statement like the following:
10 = x;
where you should instead have:
x = 10;
Although it is probably not this obvious in your case.