public class Demo04 { public static void main(String[] args) { //低 >高 //byte、short、char->int->long->float->double int i = 128; //强制转换,(类型)变量名 高-->低 by ...
分类:
编程语言 时间:
2021-03-11 19:31:35
阅读次数:
0
【资源下载】下载地址如下:https://docs.qq.com/doc/DTlRSd01BZXNpRUxl #include <reg52.H>//器件配置文件 #include <intrins.h> //传感器接口 sbit RX = P3^2; sbit TX = P3^3; //按键声明 ...
分类:
其他好文 时间:
2021-03-11 15:20:52
阅读次数:
0
强类型语言 所有变量定义后才能使用,区别于js等弱类型语言 数据类型分类 基本类型(primitive type) 引用类型(reference type) 整数类 byte:占1字节 short:占2字节 int:占4字节 long:占8字节 浮点类 float:占4字节 double:占8字节 ...
分类:
编程语言 时间:
2021-03-09 13:38:53
阅读次数:
0
包装类 基本数据类型所对应的引用数据类型 0bject可统一所有数据,包装类的默认值是null 包装类对应 基本数据类型 包装类型 byte Byte short Short int Integer long Long float Float double Double boolean Boolea ...
分类:
其他好文 时间:
2021-03-08 14:18:04
阅读次数:
0
类别 检查项 检查结果 代码 Readability 通过 Duplicated Code 通过 Hard Coding 通过 Long Method(100行) 通过 Long Parameter List(最多4个) 通过 Large Class 通过 Switch Statement 通过 L ...
分类:
其他好文 时间:
2021-03-08 14:04:45
阅读次数:
0
超短文警告! 埃氏筛: #include <iostream> #include <cstring> #include <stdio.h> #define HRiver2 return #define Warma 0 #define ll long long #define maxn 114514 ...
分类:
其他好文 时间:
2021-03-08 13:23:25
阅读次数:
0
注解和反射 注解 什么是注解: Annotation是从JDK5.0开始引入的新技术。 Annotation的作用: 1.不是程序本身,可以对程序作出解释。(这一点和注释(comment)没什么区别)。 2、可以被其他程序(比如:编译器等)读取。 Annotation的格式: 注解是以"@注释名"在 ...
分类:
其他好文 时间:
2021-03-06 15:00:03
阅读次数:
0
Aragorn's Story - 树链剖分 - HDU 3966 #include <bits/stdc++.h> using namespace std; typedef long long ll; const int N = 5e4+5; int n, m, p; char op[5]; in ...
分类:
其他好文 时间:
2021-03-06 14:20:12
阅读次数:
0
字符计数 #include<stdio.h> int main(){ long nc; nc = 0; while(getchar()!=EOF) ++nc; printf("%ld\n",nc); } 下面是for循环的代码: #include<stdio.h> int main(){ doubl ...
分类:
其他好文 时间:
2021-03-05 13:15:59
阅读次数:
0
B. Berland Crossword \(直接去枚举四个角落,注意枚举的方法,本题如何写的简洁很关键.\) #include <bits/stdc++.h> using namespace std; #define IO ios::sync_with_stdio(false);cin.tie(0 ...
分类:
其他好文 时间:
2021-03-05 13:15:01
阅读次数:
0