#include <iostream> #include <bits/stdc++.h> #include <string> using namespace std; int main() { int n; cin>>n; vector<int> a; for(int i=0;i<n;i++) { ...
分类:
其他好文 时间:
2021-02-19 13:54:37
阅读次数:
0
之前用的 <dependency> <groupId>javax.annotation</groupId> <artifactId>jsr250-api</artifactId> <version>1.0</version> </dependency> 更改后的版本 <dependency> <gr ...
分类:
编程语言 时间:
2021-02-19 13:54:21
阅读次数:
0
运算中数字溢出问题 在运算中,可能会出现结果越界的情况,比如: public class OverflowProblem { public static void main(String[] args) { int a = 10_0000_0000; int b = 20; int result = ...
分类:
其他好文 时间:
2021-02-19 13:53:01
阅读次数:
0
@RequestMapping("/getCookie") public String getCookie(@CookieValue("name")String name, HttpServletRequest request) { // 方式一: 通过request获取Cookie数组,然后循环 ...
分类:
其他好文 时间:
2021-02-19 13:51:17
阅读次数:
0
C++ 关键代码 //导出STPvoid ExportFile::ExportSTPfile(){ try { UF_initialize(); string filepath = strDir + "\\" ;//拼接路径 //获取图层过滤 PropertyList *stringLayerPro ...
分类:
其他好文 时间:
2021-02-19 13:49:31
阅读次数:
0
# 浮点数中的常见问题 ```javapublic class FloatAndDouble { public static void main(String[] args) { float num1 = 0.1F; double num2 = 1.0/10; System.out.println( ...
分类:
其他好文 时间:
2021-02-19 13:49:06
阅读次数:
0
# JAVA中整数的进制问题 ```javapublic class BaseSystem { public static void main(String[] args) { //整数进制 //十进制 int num1 = 10; //八进制 int num2 = 010; //八进制用0开头 / ...
分类:
其他好文 时间:
2021-02-19 13:48:52
阅读次数:
0
Java常用类(十五) String package com.importc; public class stringDemo01 { public static void main(String[] args) { String s1 = "Hello"; String s2 = "HELLO"; ...
分类:
编程语言 时间:
2021-02-19 13:48:05
阅读次数:
0
包装类型(十六) 我们已经知道,Java的数据类型分为两种,基本类型和引用类型 基本类型有:byte short int long float double char boolean 引用类型有:类和接口 引用类型可以赋值为null,但基本类型不能赋值为null String s = null; i ...
分类:
其他好文 时间:
2021-02-19 13:47:14
阅读次数:
0
String.Format("{0:N1}", a) 保留小数点后一位 String.Format("{0:N2}", a) 保留小数点后两位 String.Format("{0:N3}", a) 保留小数点后三位 C#保留小数位N位四舍五入 double s=0.55555; result=s.T ...