-1

The clear() command and the Clear button just clear the screen, but any constants and variables remain, causing problems when trying to do simple tests. Do I need to restart the application every time?

Tomáš Zato
  • 50,171
  • 52
  • 268
  • 778

1 Answers1

0

You cannot "clear" the variables set in console. They do represent current state of your application, so yes, you need to restart the application to reset this state.

You will need to write a procedure that puts variables in their original state. Or use local variables that perish once a procedure is over.

Tomáš Zato
  • 50,171
  • 52
  • 268
  • 778