前言:这是一个大作业,磨磨蹭蹭弄了一个多星期。嗯,果然C++是高手的语言。 实现了音乐播放, VS2017工程源码在 这里,也许可以帮到正好需要它的人 整体思 继续阅读

看完了Golang的官方教程,在处理Slice和Map的参数传递时还是会出现莫名奇妙的问题,原因在于还是没有弄清楚Golang的参数传递 我之前模糊地认 继续阅读

由于我使用的主题并没有适配移动端,在手机上浏览的体验不是很好,于是需要对博客主题进行魔改,使博客更好的适配不同屏幕宽度的移动设备 设计移动端导航栏 我的导 继续阅读

思路 这个项目是我的本科毕业设计,其实今年年初整个项目就做完了,对它还是挺满意的,想起来好几个月没写过博客了,正好分享一下,嘿嘿。 模仿我们学校OJ来做( 继续阅读

关系型数据库事务的作用是保证并发访问下数据的一致性,Redis事务有些不同,由于Redis是单线程的处理来自client的指令,所以Redis所有命令 继续阅读

非阻塞的NIO可以开发出性能很不错的网络应用程序,而Netty和Mina这类NIO框架对Java NIO做了封装,可以让高性能IO程序的开发变得容易。 N 继续阅读

概要 mybatis是一个持久层框架 输入映射:preparedStatement中的输入参数自动进行输入映射 输出映射:查询结果集灵活映射成java对象 和 继续阅读

前几天手机升级到 Android 7.0,发现获取闪讯密码客户端闪退了,我怀疑是运行时权限的问题,因为是必备的软件,所以想自己重新写一个。 网上搜了一下,直接发短信是用 继续阅读

To evaluate the performance of our first year CS majored students, we consider their grades of three courses only: C – C Programming Language, M – Mathematics (Calculus or Linear Algebra), and E – English. At the mean time, we encourage students by emphasizing on their best ranks — that is, among the four ranks with respect to the three courses and the average grade, we print the best rank for each student. For example, 继续阅读

This time, you are supposed to find A*B where A and B are two polynomials. Input Specification: Each input file contains one test case. Each case occupies 2 lines, and each line contains the information of a polynomial: K N1 aN1 N2 aN2 … NK aNK, where K is the number of nonzero terms in the polynomial, Ni and aNi (i=1, 2, …, K) are the exponents and coefficients, respectively. It is given that 继续阅读

The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors the elevator will stop, in specified order. It costs 6 seconds to move the elevator up one floor, and 4 seconds to move down one floor. The elevator will stay for 5 seconds at each stop. For a given request list, you are to compute the total time spent 继续阅读

题目给出K个整数。一个连续的片段是指 N[i], N[i+1], …, N[j](1≤i≤j≤K),最大片段是指拥有最大片段和的片段。比如给出数据{ -2, 11, -4, 13, -5, -2 },它的最大片段是 继续阅读

基于Intent的通信 intent对象是component用来和操作系统通信的媒介工具,intent可以告诉ActivityManager该启动哪个 a 继续阅读

As an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scattered cities connected by some roads. Amount of rescue teams in each city and the length of each road between any pair of cities are marked on the map. When there is an emergency call to you from some other city, your job is to lead your men to the place as quickly 继续阅读

并查集,即不相交集合,用森林表示。主要操作有初始化、查询、合并。 初始化 每个元素都建立一个只含自己的集合,每个元素都是自己所在集合的代表,把每个元素的父 继续阅读

PAGE 1 / 2