I. Generation of evenly distributed random numbers
As we all know, random numbers play a major role in all aspects. In the VC environment, we provide the library function rand () to generate a random integer. The random number ranges from 0 to 0 on
1.VisualBasic data type
2. Declaration of variables
3.Option Explicit keyword
4. Scope of variables
5.Static keywords
6. Constant
7. Data type Conversion
VisualBasic data type Data type example
Byte Type 56
Boolean True False
Integral type
Tips"Effective Java, third Edition" an English version has been published, the second edition of this book presumably many people have read, known as one of the four major Java books, but the second edition of 2009 published, to now nearly 8 years,
Const SUMMARY
1. Constant object: Const class Name Object name [()]For example, const Cdate D1 (2008,8,8)D1 is a constant object, the value of all members in the object D1 cannot be modified, the defined constant must have an initial value, cannot
Earlier, C + + inherited and extended the traditional type conversion of C language, and finally left some on the pointer and reference on the transformation problem, did not do in detail to tell. C++compared to C is an object-oriented language, one
1, cons can limit a variable, yes its value cannot be changed2. By default, const objects are only valid within a file.At compile time, the compiler replaces all occurrences of the const variable in the program with the initial value of const, so
generic type
23rd: Please do not use the original ecological type in the new code
If the original ecological type is used, it loses all the advantages of generics in terms of security and presentation, such as the use of primitive ecological types
In this paper, "Effective C # Second Edition" is applied to the Unity game engine in the use of C # in the experience of the rule of thumb was refined, summed up into 21 (first summed up is 22, and later found that 22nd is also. NET features, unity
Turn from: http://blog.csdn.net/swj524152416/article/details/75418162 we know that in the C + + field, as an advanced reading material, the must-see book is "Effective C + +". and "Effective C #" In C #, is similar to the "effective C + +" in the
Const qualifier: Use const to qualify the object so that the const object cannot be changed once it is created.A const object must be initialized when it is defined, in two ways:const int x = 10;const int x = GetValue ();The first is to assign a
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.