参考:C++转换构造函数:将其它类型转换为当前类的类型 (biancheng.net) C++类型转换函数:将当前类的类型转换为其它类型 (biancheng.net) 类型转换函数的语法格式为: operator type(){ //TODO: return data;} operator 是 C ...
分类:
编程语言 时间:
2021-05-24 02:07:31
阅读次数:
0
三种获取登陆信息方式 @RequestMapping("/user/info") @ResponseBody public Object userInfo(Authentication authentication) { return authentication.getPrincipal(); } ...
分类:
编程语言 时间:
2021-05-24 01:48:36
阅读次数:
0
整理压缩代码 using System; using System.Collections.Generic; using System.Drawing; using System.Drawing.Drawing2D; using System.Drawing.Imaging; using Syste ...
https://leetcode-cn.com/problems/find-minimum-time-to-finish-all-jobs/ 不会做,蹭个积分就走~ class Solution { /** * 最小的 工人最大用时 */ private int minId = Integer.MA ...
分类:
其他好文 时间:
2021-05-24 01:38:37
阅读次数:
0
一、os模块 os模块负责程序与操作系统的交互,提供了访问操作系统底层的接口,多用于文件处理。 方法详解 os.getcwd() 获取当前工作目录,即当前python脚本工作的目录路径 os.chdir(“dirname”) 改变当前脚本工作目录;相当于shell下cd os.curdir 返回当前 ...
分类:
其他好文 时间:
2021-05-24 00:51:10
阅读次数:
0
一、定义 递归:程序调用自身,从顶部将问题分解,其问题与其子问题是同一概念。通过解决掉所有分解出来的小问题,来解决整个问题。 迭代:利用变量的原值推算出变量的下一个值。递归中一定有迭代,但是迭代中不一定有递归。 动态规划:通常与递归相反,其从底部开始解决问题。将所有小问题解决掉,进而解决的整个问题。 ...
分类:
其他好文 时间:
2021-05-24 00:46:45
阅读次数:
0
参考博客: https://www.cnblogs.com/tugenhua0707/p/3776808.html 代码: Date.prototype.format = function(fmt) { var o = { "M+" : this.getMonth()+1, //月份 "d+" : ...
分类:
Web程序 时间:
2021-05-24 00:40:16
阅读次数:
0
package experiment6; public interface ISoundable { public void increaseVolume(); public void decreaseVolume(); public void stopSound(); public void pl ...
分类:
其他好文 时间:
2021-05-24 00:30:07
阅读次数:
0
前言 看的书是:C++ Primer Plus 第六版 第1章 预备知识 没啥要点 第2章 开始学习C++ 2.1 进入C++ 2.1.1 main()函数 main() //original C style 在C语言中,省略返回类型相当于说函数的类型为int,但是C++淘汰了这种用法 也有这种变体 ...
分类:
编程语言 时间:
2021-05-24 00:21:04
阅读次数:
0
func (o *MsSqlUtils) ExecuteSql(cmd string) (err1 error, affected int64) { defer func() { //必须要先声明defer,否则不能捕获到panic异常 if err2 := recover(); err2 != n ...
分类:
编程语言 时间:
2021-05-24 00:20:08
阅读次数:
0