一对一和一对多,使用书本、作者、书签 作为示例: 一本书只有一个作者,并且有多条书签 实体类: public class BookMark { public int Id { get; set; } public int BookId { get; set; } public virtual str ...
分类:
移动开发 时间:
2020-12-29 11:20:21
阅读次数:
0
部分内容比较生硬,还需要继续优化 public static ExcelWorksheet CreateExcel3<T>(ExcelPackage package, string sheetName, string title, string[] titles, IEnumerable<T> ax ...
分类:
其他好文 时间:
2020-12-29 11:20:04
阅读次数:
0
Given an input string (s) and a pattern (p), implement wildcard pattern matching with support for '?' and '*' where: '?' Matches any single character. ...
分类:
其他好文 时间:
2020-12-29 11:12:41
阅读次数:
0
Helloword 随便新建一个文件夹,存放代码 新建一个java文件 文件名后缀为.java Hello.java [注意]系统可能没有显示文件后缀名,我们需要手动打开 编写代码 public class Hello{ public static void main(String[]args){ ...
分类:
其他好文 时间:
2020-12-29 10:58:27
阅读次数:
0
首先Spring Boot项目中都会如下启动类: @SpringBootApplication public class Application { public static void main(String[] args) { SpringApplication.run(Application. ...
分类:
编程语言 时间:
2020-12-28 11:58:46
阅读次数:
0
Java 7中,switch的参数可以是String类型了,这对我们来说是一个很方便的改进。到目前为止switch支持这样几种数据类型:byte short int char String 。但是,作为一个程序员我们不仅要知道他有多么好用,还要知道它是如何实现的,witch对整型的支持是怎么实现的呢 ...
分类:
编程语言 时间:
2020-12-28 11:44:44
阅读次数:
0
json的unmarshal可以对string,[]byte直接解码成对应的结构体。 情况1: 解码如果失败,会直接返回error,注意判断就ok 情况2: 如果struct中对应的json字段名称为errno, 而实际的解码字符串是errNo, 实际解码后errNo能映射到errno中,字段名称不 ...
分类:
Web程序 时间:
2020-12-28 11:23:49
阅读次数:
0
#include<stdio.h> #include<stdlib.h> #include<string.h> #define N 4 typedef struct student { int id; char name[20]; char subject[20]; float perf; floa ...
分类:
其他好文 时间:
2020-12-28 11:16:34
阅读次数:
0
1.实验任务1 // P280例8.15 // 对教材上的程序作了微调整,把输出学生信息单独编写成一个函数模块 // 打印不及格学生信息和所有学生信息程分别调用 #include<stdio.h> #include<stdlib.h> #include<string.h> #define N 3 / ...
分类:
其他好文 时间:
2020-12-28 11:15:35
阅读次数:
0
在使用CMFCPropertyGridCtrl控件时通常会遇到COleVariant向基本数据类型转换的问题,主要是int double string(cstring)这三种类型。转换方式总结如下。 对于int型 COleVariant v; int a = v.lVal; 对于double型 CO ...
分类:
其他好文 时间:
2020-12-28 11:14:53
阅读次数:
0