摘要: getter,setter 设置变量的属性时,我们通常会对数据进行封装,这样就可以增加了数据访问限制,增加了程序可维护性。而实现方法就是:用private去修饰一个变量,然后再用setter方法去设置该变量的值,然后在用getter方法去调用该变量的值。 public class Student{ 阅读全文
posted @ 2021-11-05 10:15 fristzzz 阅读(216) 评论(0) 推荐(0)
摘要: 大数数组,阶乘 《深入浅出程序设计竞赛》上看到了一个很妙的结构体用法,创建了一个大数类型。 并且用运算符重构写出了加法和乘法,摘下来记录下。 主函数部分为算出一个数的阶乘 #include<string> #include<cstdio> #include<iostream> #include<bi 阅读全文
posted @ 2021-11-02 01:09 fristzzz 阅读(72) 评论(0) 推荐(0)
摘要: StackLayout 线性排列一系列元素,属性有Orientation元素方向,默认为vertical Grid 属性有RowDefinitions,ColumnDefinitions RowDefinitions("*,auto,auto,*") Table,Button 实例 xaml <Co 阅读全文
posted @ 2021-11-02 00:53 fristzzz 阅读(22) 评论(0) 推荐(0)
摘要: problem: unable to generate assets to build and debug Added omnisharp.json file to the root folder with below content: { "msbuild": { "useBundledOnly" 阅读全文
posted @ 2021-10-04 16:52 fristzzz 阅读(143) 评论(0) 推荐(0)