一次初始化后如何重新初始化静态变量 [英] How to reinitialise static variable onces initialise
本文介绍了一次初始化后如何重新初始化静态变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
所以如何初始化并使它们失去价值.
需要帮助
So How to initialise and make them lose there value.
need help
推荐答案
尝试在调试器下运行您的应用程序,并在每个更改了变量的地方放置一个断点.
您可能还想使用Google研究静态变量的性质.这是关于它的MSDN页面.
http://msdn.microsoft.com/en-us/library/79b3xss3 (v = vs.80).aspx [
Try running your app under the debugger and put a breakpoint on every place the variable is changed.
You might also want to use google to research the nature of static variables. Here''s a MSDN page about it.
http://msdn.microsoft.com/en-us/library/79b3xss3(v=vs.80).aspx[^]
没有诸如未初始化",松散值"或擦除"之类的概念.只需分配一个新值即可.顺便说一下,这是所有编程中的普遍想法.
—SA
There is no such concept as "uninitialize", "loose value", or "erase". Just assign a new value. By the way, this is a common idea in all programming.
—SA
这篇关于一次初始化后如何重新初始化静态变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文