VS-C++ 系列:所有相关C++文章链接.
VS-C# 系列:所有相关C#文章链接.
bat 系列:所有相关bat文章链接.
Keil 系列:所有相关文章链接
所有内容均以最小系统调试成功;逐步提供低分源码工程下载!
保证每行代码都经过验证!
如有疑惑,欢迎留言,看见即回;祝好__by Dxg_LC
序言:
1、以上链接为方便整理查看资料用;伴随博文发布更新,如果有不正确处,感谢指正
2、因本人能力有限若有不正确之处或者相关超链接失效,请于相关文章内提醒@博主;灰常感谢
3、友情提醒1,勿要《一支烟 + 一杯茶 == 一坐一下午》 身体重要,革命本钱;
4、友情提醒2,多喝热水;
5、友情提醒3,听媳妇话+多点时间陪家人;
C#静态类初始化 结构体初始化
public static class TestUse
{
public struct st
{
public int num;
public string str;
}
public static st pst ;
public static int Count = 0;
static TestUse()
{
Count += 10;
pst = new st();
pst.num += Count++;
pst.str += pst.num.ToString();
}
}
public Form1()
{
InitializeComponent();
Console.WriteLine("TestUse.Count = " + TestUse.Count.ToString());
Console.WriteLine("TestUse.Count = " + TestUse.Count.ToString());
Console.WriteLine("TestUse.Count = " + TestUse.Count.ToString());
Console.WriteLine();
Console.WriteLine("TestUse.pst.num = " + TestUse.pst.num.ToString());
Console.WriteLine("TestUse.pst.str = " + TestUse.pst.str);
Thread.Sleep(1);
}
Dxg-原创出品,如需转载,请注明出处;
欢迎收藏,点赞;"一键三联"走起,LOL