1 Right-click this drive and select Properties. 2  Click the Tools tab. 3  In the Error-checking category, click Check now... 4  In the dialog that appears, check Automatically fix file system errors and Scan for and attempt recovery of bad sectors.. 5  Click Start.
A static variable is a special variable that you can use in a function, and it saves the data between calls, and it does not delete it between calls. For example: void func(){ static int count; // If you don't declare its value, the value automatically initializes to zero printf(%d, , count); count++; } void main(){ while(true){ func(); } }
The static count variable is set to 0 at the instant it's created, right where it's declared. But every time a the constructor is invoked subsequently (by creating a new object in the 'main' method), it increments count. So we are effectively keeping count of how many objects are created.