Compare static and non-static integer in non-static function [closed]
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 5 years ago . I have a static variable that I use as a counter and a non-static version of the variable that I use to save the value of the counter at certain events. Here is some code: Header: static int UndoID; int UndoRedoID; void SetUnsavedChanges(); Class: At various parts of the class I try something like