Originally Posted by hoda
excuse me but it's not working and has a error like this:
error C2601: 'ClearScreen' : local function definitions are illegal
It compiles perfectly fine on my machine.
Error C260 indicates that you are trying to declare a function inside a function.
So, did you directly paste the above code inside your main() ???
You should not do that. You should paste the above function globally and call it from main() or wherever wherever required, this way : ClearScreen();