Public struct XXX (under class, on static void main)
Class Program
{// You dare not forget your country! // Xiao Shuo (Gao Xiaosong video)
Public struct jiegouti // create the type of the item in the Variable
{// Public indicates that it is common! Class can be used!
Public int fenshu;
Public string name;
Public shuxing SX; // in this case, shuxing is a variable type, and SX is one of its items. SX contains the following items! New jiegouti. New is not used when SX is used!
}
Public struct shuxing
{
Public String hunfou;
Public String xueli;
}
Static void main (string [] ARGs)
{
/* Jiegouti A = new jiegouti (); // create an initialization variable.
A. Name = "James ";
A. fenshu = 99; // assign a value to the variable as needed!
A. SX. hunfou = "yihun"; // because jiegouti contains shuxing and shuxing contains Sx, A. SX ....... You can assign values directly!
A. SX. xueli = "manager ";
Console. writeline (A. Name + A. SX. hunfou + A. SX. xueli );
Console. writeline (A. fenshu );
Console. Readline ();*/
}
}
Public struct XXX (under class, on static void main)