Note: Here are some of my notes, problems, and solutions in the process of learning c. If you have time to write them down, it may be trivial and not systematic, but I think some people may encounter the same problem and find a solution everywhere.
A struct can be a member of another struct:
(1)
Struct phoneBook
{
Public string name;
Public uint age;
Public string phone;
Public struct address
{
Public string city;
Public string street;
Public uint no;
}
}
However, there is a problem:
How do I
C # statement,
Select statement
If, else
If is the meaning of else, else is the other meaning. if is followed by the condition in brackets (), it enters the if statement to execute the command. If not, the if statement is not entered. Else does
Simple factory design mode []. Factory Design Mode
This baby is just a cainiao who writes and writes Study Notes to help you learn new things. If there are any mistakes or deficiencies, I hope you can correct me.
1. Let's give an example to
C # set,
ArrayListArrayList myarry = new ArrayList ();Myarry. Add (1); // Add an elementMyarry. Add (2); // The index also starts from scratch.Myarry. Add (3 );Myarry. Add (4 );Myarry. Add (5 );
Myarry. Insert (3, "7 ");Insert a value of 7 at the
C # ArrayList set-small example,
You can use either of the following methods to compile a question: Enter the name, Chinese score, mathematical score, and English score to the set, find the total Chinese score, average mathematics score, the highest
C # basic review 02,
Continue to update Article 2:
1: unary operator: ++ --
++: No matter whether it is the prefix or the Postfix, the variable value will eventually add one.
The difference between the add-before and add-after operations is
C # loop statement for loop (nested while exhaustive iteration ),
For loop nesting is similar to if else
Example:Print the matrix. The outer loop corresponds to the row and the inner loop corresponds to the column.
For (int k = 1; k {For (int I = 1;
Example () else ()
Double D = convert. todouble (console. Readline ());
If (D> = 60 & D
{
Console. writeline ("pass ");
}
Else
{
Console. writeline ("fail ");
}
Console. Readline ();
Example
1. Rounding a floating point number to an
String:String S = "AB ";String S1 = "A \ Nb"; // n: the meaning of newline or next.
String S = "A \ B ";
String S = "C :\\ Temp \ fasdf \ dd \ AAA \ 1.jpg ";Stirng S = "\\\\";
String [email protected] "\\\\"; // Adding @ in front of the string does
One interview is frustrated-is the code correct?
This year, I was a senior in computer science. I learned a lot about software development and compiled some small programs. After posting numerous resumes, I finally received an interview notification
C # immerse yourself in the banking system of. WO in the code,
Kindergarten taipan, Mo
Today, I will share with you the Money banking system code that everyone loves. It's not a dream to save Money and make you the richest man!
So let's take a look
C # array [1],
Array: an array of several variables of the same type. The collections of these sort-by-order data elements are called arrays.Define an arrayInt [] variable name = new int [n];
String [] myStringArray = new string [6];
Int [] myArray =
C # loop statement for loop,
Loop: execute a code segment repeatedly.
Four elements of a loop: initial condition, cyclic condition, cyclic body, and state change.For (initial condition; cyclic condition; state change){Loop body}
Given the initial
One interview frustrated --CodeIs it good?
This year, I was a senior in computer science. I learned a lot about software development and made some minor adjustments.ProgramHe is dedicated to finding a good organization. After posting numerous
This year, I was a senior in computer science. I learned a lot about software development and compiled some small programs. After posting numerous resumes, I finally received an interview notification from an organization.When she arrived at the
Tag: blog HTTP Io OS AR for SP data 2014
Double D = double. parse (console. Readline ());D = math. Pi; // circumference RateD = math. SQRT (d); // kaifangD = math. Ceiling (d); // This is an integer. When the decimal point is greater than 0, the
C # Regular Expression Regex common match,
To use the Regex class, you must reference the namespace: using System. Text. RegularExpressions;
Verification using the Regex class
Example 1: The annotated code plays the same role, but one is a static
C # Regular Expression Regex common match,
To use the Regex class, you must reference the namespace: using System. Text. RegularExpressions;
Verification using the Regex class
Example 1: The annotated code plays the same role, but one is a static
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.