Quote:
|
Originally Posted by xbonez
@yamraj : what was wrong with my prog??  it seemed to run perfectly fine
|
Using implementation dependent libraries and functions like clrscr(), and the nonstandard "void main()" violates the rules of the ISO C++ standard. Your executable may run fine on a system, but your code needs more love.
I recommend a decent and recent C++ book, like C++: How To Program, C++ Primer, 4th/e or C++ Primer Plus.