初始化 [英] Initialization
本文介绍了初始化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是一个初学者,所以请您向我解释如何初始化变量?
I''m a beginner, so could you please explain to me how variables are initialized?
推荐答案
它们使用"="符号进行初始化.它们如何初始化取决于它们是什么类型.固有类型可以简单地分配一个值.复杂类型必须先使用new
实例化,然后才能使用.
除此之外,您还应该读一本书,因为在此级别学习编程并不能正确使用网站的这一部分.
They''re initialized with the "=" sign. How they''re initialized depends on what type they are. Intrinsic types can simply be assigned a value. Complex types must be instantiated withnew
before they can be used.
Beyond that, you should read a book because learning to program at this level is not the proper use of this part of the web site.
这篇关于初始化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文