码迷,mamicode.com
首页 >  
搜索关键字:struct enum    ( 22969个结果
C Primer Plus: Object Code Files, Executable Files, and Libraries
Object Code Files, Executable Files, and Libraries The basic strategy in C programming is to use programs that convert your source code file to an exe ...
分类:其他好文   时间:2020-04-26 17:04:03    阅读次数:69
3.IDEA导入项目只有配置文件
如果idea导入项目加载完之后只有一些配置文件怎么办呢? 1.把项目里面的.idea文件删除,在导入到IDEA里面 2.点击file-Project Structure-Modules-点击“+”号-Import Module 然后找到自己的文件目录,点击打开就行了 ...
分类:其他好文   时间:2020-04-26 16:52:29    阅读次数:104
无向图求割边
1 //无向图求割边 2 #include <cstdio> 3 #include <cstdlib> 4 #include <cstring> 5 #include <cmath> 6 #include <algorithm> 7 #include <queue> 8 #include <stac ...
分类:其他好文   时间:2020-04-26 14:05:12    阅读次数:57
Redis 字符串实现:简单动态字符串-SDS与C字符串的区别
2.1 SDS的定义 struct { //buf中已使用的字节数,等于SDS所保存字符串的长度 int len; //buf中未使用的字节长度 int free; //字节数组,用于保存字符串 char[] buf; } 2.2 SDS与C字符串的区别 C字符串 SDS 获取字符串长度的复杂度为 ...
分类:其他好文   时间:2020-04-26 13:47:24    阅读次数:124
6.enum枚举
enum 的全称为 enumeration, 是 JDK 1.5 中引入的新特性,存放在 java.lang 包中。 下面是我在使用 enum 过程中的一些经验和总结,主要包括如下内容: 1. 原始的接口定义常量 2. 语法(定义) 3. 遍历、switch 等常用操作 4. enum 对象的常用方 ...
分类:编程语言   时间:2020-04-26 13:44:48    阅读次数:77
4. 树形DP
337. 打家劫舍 III https://leetcode-cn.com/problems/house-robber-iii/ /** * Definition for a binary tree node. * type TreeNode struct { * Val int * Left *T ...
分类:其他好文   时间:2020-04-26 11:12:02    阅读次数:55
Redis 动态字符串总结
字符串结构 struct sds{ //记录buf中已使用的字节数 int len; //记录buf中未使用的 int free; //存储具体内容 char buf[]; } 与C字符串的区别 C字符串取字符串长度时间复杂度O(N),SDS是O(1)。 C字符串未考虑数组溢出的问题,比如strca ...
分类:其他好文   时间:2020-04-25 23:14:44    阅读次数:67
IDEA 之 Java项目复制
1、复制一个项目,并改名字 2、更改以下文件名字 3、将以下文件中的原有名字,替换成更改后的名字(例如MyWebapp07替换成MyWebapp08) 4、将out文件夹给删除 5、然后用IDEA打开项目,打开project Structure 6、重新更改Artifacts 7、打开tomcat ...
分类:编程语言   时间:2020-04-25 23:09:14    阅读次数:233
C#值类型、引用类型(1)
值类型:byte short/char int long float double decimal bool enum 特点:在进行赋值的时候传的是数值,修改其中任意一个数据变量时,另一个不会受到影响。 例如: int a=12; int b=a; b++; Console.WrithLine("$ ...
分类:Windows程序   时间:2020-04-25 19:22:19    阅读次数:69
MIPS和CPI
1.MIPS(Million Instructions Per Second):单字长定点指令平均执行速度 Million Instructions Per Second的缩写,每秒处理的百万级的机器语言指令数。 存在的问题: MIPS是指令执行的速率,规定了性能和执行时间成反比,越快的计算机具有越 ...
分类:其他好文   时间:2020-04-25 17:30:47    阅读次数:313
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!