- 博客(8)
- 收藏
- 关注
原创 my.cnf
my.cnf # Example MySQL config file for medium systems. # # This is for a system with little memory (32M - 64M) where MySQL plays # an important part, or systems up to 128M where MySQL is used together with # other programs (such as a web s
2021-07-07 08:29:08
83
原创 虚拟地址到物理地址的转换步骤
已知一个虚拟地址0x01AF5518, 则转换的过程如下:注意: 这里讨论的以Windows下普通模式分页的情况, 也就是2级页表的情况1.首先把虚拟地址拆分成3个部分(低12位, 中10位, 高10位), 换成2进制如下: -> 0000 0001 1010 1111 0101 0101 0001 1000按照10, 10, 12的位数重新排列后 -> (页目录索引)00 000 00110, (页表项索引)10 1111 0101, (偏移)0101 0001 1000换算成
2020-08-24 14:52:14
7135
2
原创 Java判断质数的方法
若为质数,返回ture。public boolean judgePrime(int num) { boolean flag = true; if(num == 1 || (num %2 == 0 && num !=2)) flag = false; else for(int j = 3; j <= Math.sqrt(nu...
2019-08-15 23:22:40
3405
原创 数组
二维数组遍历二维数组int[][] balances = {{16,3,2,13},{5,10,11,8},{9,6,7,12},{4,15,14,1}};方法一:for(int[] row : balances) for(int value : row) System.out.print(value);...
2019-07-14 22:08:16
89
原创 软件设计七大原则
1.开闭原则定义:一个软件实体如类、模块和函数应该对扩展开放,对修改关闭。强调用抽象构建框架,用实现扩展细节。优点:提高软件系统的可复用性及可维护性。...
2019-05-27 02:33:59
144
原创 UML类图简介
UML类图简介第一部分表示类名,抽象类用斜体表示,接口需加上interface符号含义+Public-Private#Protected~Default——Static:Ctrl/Command + Z重做:Ctrl/Command + Y加粗:Ctrl/Command + B斜体:Ctrl/Command + I标题:C...
2019-04-21 17:42:14
158
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人