Wesley13 Wesley13
3年前
PLA感知学习算法
1include<vector2include<iomanip3include<string4include<stdio.h5include<string.h6include<fstream7include<ios
Wesley13 Wesley13
3年前
java字符串比较和jdkequals源码分析
 package com.cnse.demo;/  比较两个字符串相等 /public class StringTest { public static void main(String args) {  int checkLength  0;  String str
梦
4年前
微信小程序new Date()转换时间异常问题
微信小程序苹果手机页面上显示时间异常,安卓机正常问题image(https://imghelloworld.osscnbeijing.aliyuncs.com/imgs/b691e1230e2f15efbd81fe11ef734d4f.png)错误代码vardate'2021030617:00:00'vardateT
Stella981 Stella981
3年前
Gson自定义处理Calendar日期Date时间类型
Gson是什么?Gson是Google提供的用来在Java对象和JSON数据之间进行映射的Java类库。可以将一个JSON字符串转成一个Java对象,或者反过来。Gson对一般类型的序列化和反序列话都没有问题,但是像Calendar日期这样的类型,可能需要手动处理下            遇到的问题?时间
Wesley13 Wesley13
3年前
JSTL问题集
Date:2012112Environment:Eclipse4.2,Tomcat7     1.问题描述:Cannotfindthetaglibrarydescriptorfor"http://java.sun.com/jsp/jstl/core"      今天碰到这个问题,前几天学习jstl
Stella981 Stella981
3年前
C++11之右值引用(三):使用C++11编写string类以及“异常安全”的=运算符
前面两节,说明了右值引用和它的作用。下面通过一个string类的编写,来说明右值引用的使用。相对于C98,主要是多了移动构造函数和移动赋值运算符。先给出一个简要的声明:classString{public:String();String(constchars);
可莉 可莉
3年前
200多个js技巧代码(2)
51.向文件中写内容<%@ page import"java.io." %<% String str  "print me"; //always give the path from root. This way it almost always works. String nameOfTex
Stella981 Stella981
3年前
Golang数组去重
方法一://这种发放适用于string,int,float等切片,会对切片中的元素进行排序funcSliceRemoveDuplicates(slicestring)string{sort.Strings(slice)i:0varjint
Wesley13 Wesley13
3年前
JAVA 进制转换的几个方法
进制转化在JAVA中已经封装好了.无论是常规的10转2,8,16,还是相对应的2,8,16进制转化为10进制的方法,当然也包括10n进制,n进制转10进制的常规方法.都被封装在Integer对象中.10进制转化其他进制对应的方法,参数:n(原10进制数据),r(进制),返回值10进制转2进制Integer.toBinarySt
Stella981 Stella981
3年前
200多个js技巧代码(2)
51.向文件中写内容<%@ page import"java.io." %<% String str  "print me"; //always give the path from root. This way it almost always works. String nameOfTex