12 2022 档案
摘要:资源的搜索顺序 自身资源 》父级资源 》...》窗口资源 》应用程序资源 》框架系统资源 资源的重用原则 被广泛的重用,可以使用应用程序资源;两三个窗口使用资源,建议在每个资窗口分别定义。 静态资源和动态资源的区别 静态资源:StaticResource程序编译时确定,程序编译后生成一个BAML文件
阅读全文
摘要:(1)WPF布局原则: 1.不用显示的方式设置元素的尺寸。 2.不使用屏幕坐标来指定位置。 (2)常用布局控件:Grid容器、StackPanel、DockPanel、WrapPanel、UniformGrid、Canvas、InkCanvas 装饰控件:Border(背景色、边框、圆角) Grid
阅读全文
摘要:链表通过尾部插入 #include<stdio.h> #include<stdlib.h> struct Test { int data; struct Test * next; }; printfLink(struct Test * head) { while(head!=NULL) { prin
阅读全文
摘要:#include<stdio.h> #include<stdlib.h> struct Test { int data; struct Test * next; }; printfLink(struct Test * head) { while(head!=NULL) { printf("%d\n"
阅读全文
摘要:删除链表节点可以分为三种:删除头节点,删除中间节点和删除尾节点 #include<stdio.h> #include<stdlib.h> struct Test { int data; struct Test * next; }; printfLink(struct Test * head) { w
阅读全文
摘要:在链表的前方插入节点 #include<stdio.h> struct Test { int data; struct Test * next; }; printfLink(struct Test * head) { while(head!=NULL) { printf("%d\n",head->d
阅读全文
摘要:在指定数据后面插入节点的案例:在Test结构体(这个结构体的data为2)后面插入一个Test结构体(data=6) #include<stdio.h> struct Test { int data; struct Test * next; }; printfLink(struct Test * h
阅读全文