自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

欢迎访问胡宝全的博客

欢迎大家拍砖,和大家一起进步!

  • 博客(90)
  • 资源 (14)
  • 收藏
  • 关注

原创 Windows API 获取系统时间毫秒星期

#include #include #include#include using namespace std;int main( void ) { HANDLE hOut;WORD color;hOut=GetStdHandle(STD_OUTPUT_HANDLE);color=FOREGROUND_RED|BACKGROUND_BLUE;SetConsoleText

2016-06-07 19:44:27 5504

转载 JAVA获取系统时间

一. 获取当前系统时间和日期并格式化输出:import java.util.Date;import java.text.SimpleDateFormat;public class NowString {public static void main(String[] args) { SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-

2016-06-07 19:32:29 2234

原创 基础练习 01字串

问题描述对于长度为5位的一个01串,每一位都可能是0或1,一共有32种可能。它们的前几个是:0000000001000100001100100请按从小到大的顺序输出这32种01串。输入格式本试题没有输入。输出格式输出32行,按从小到大的顺序每行一个长度为5的01串。样例输出00000

2015-12-06 11:27:46 2112

原创 基础练习 闰年判断

问题描述给定一个年份,判断这一年是不是闰年。当以下情况之一满足时,这一年是闰年:1. 年份是4的倍数而不是100的倍数;2. 年份是400的倍数。其他的年份都不是闰年。输入格式输入包含一个整数y,表示当前的年份。输出格式输出一行,如果给定的年份是闰年,则输出yes,否则输出no。说明:当试题指定你输出一个字

2015-12-06 11:25:38 2026

原创 入门训练 A+B问题

import java.util.*; public class Main{ public static void main(String args[]) { Scanner sc = new Scanner(System.in); Integer a = sc.nextInt(); Integer b = sc.nextInt

2015-12-06 11:17:17 2308

原创 入门训练 序列求和

问题描述求1+2+3+...+n的值。输入格式输入包括一个整数n。输出格式输出一行,包括一个整数,表示1+2+3+...+n的值。样例输入4样例输出10样例输入100说明:有一些试题会给出多组样例输入输出以帮助你更好的做题。一般在提交之前所有这些样例都需要测试通过才行,但这不代表这几组样例数

2015-12-06 11:14:53 2151

原创 入门训练 圆的面积

问题描述给定圆的半径r,求圆的面积。输入格式输入包含一个整数r,表示圆的半径。输出格式输出一行,包含一个实数,四舍五入保留小数点后7位,表示圆的面积。说明:在本题中,输入是一个整数,但是输出是一个实数。对于实数输出的问题,请一定看清楚实数输出的要求,比如本题中要求保留小数点后7位,则你的程序必须严格的输出7位小数,输出过多或者过少的小数位

2015-12-05 23:13:18 2423

原创 入门训练 Fibonacci数列

问题描述Fibonacci数列的递推公式为:Fn=Fn-1+Fn-2,其中F1=F2=1。当n比较大时,Fn也非常大,现在我们想知道,Fn除以10007的余数是多少。输入格式输入包含一个整数n。输出格式输出一行,包含一个整数,表示Fn除以10007的余数。说明:在本题中,答案是要求Fn除以10007的余数,因此我们只要能算出这个余

2015-12-05 23:09:01 2151

原创 第六届蓝桥杯大赛个人赛(软件类)校内选拔题目\Java大学B组\1题

原题:java中提供了对正则表达式的支持。有的时候,恰当地使用正则,可以让我们的工作事半功倍!如下代码用来检验一个四则运算式中数据项的数目,请填写划线部分缺少的代码。注意:只填写缺少代码,不要写任何多余内容,例如,已有的双引号。public class A{public static int f(String s){return s.sp

2015-12-05 23:04:17 3864

原创 JAVA中This指针的三种常用方法

/* 2015年10月15日22:55:34 this指针是隐藏在方法内的一个形参 不用给他显式的去传递参数 他始终指向调用该方法的对象, 因为对象调用方法时隐式把对象引用传给了this 常见使用一:     见下代码public A(char c)方法     this主要用于属性的初始化时,构造函数形参与类中属性相同时的处理 常见使用二:     见代码

2015-10-15 23:36:11 4038

WindowsPCHealthCheckSetup.msi电脑健康状况检查Windows11/Win11升级检查

电脑健康状况检查,Windows11/Win11升级检查

2021-06-26

华为ADB驱动.rar

华为ADB驱动.rar华为ADB驱动.rar华为ADB驱动.rar华为ADB驱动.rar

2017-10-13

adb_tools-2.0

adb_tools-2.0,android调adb以及fastboot。adb_tools-2.0,android调adb以及fastboot。

2017-10-13

busybox1.27.1_binary

非安装版,包含382个busybox小工具,直接解压可用。Linux和Android都可以。

2017-10-13

jython.jar

Welcome to Jython 2.5.2 ======================= This is the final 2.5.2 release of Jython. It contains the fixes of the blocker bugs since 2.5.2 release candidate 3. This release fixes bugs related to resource leaks, Java integration, and a number of other issues. See the NEWS file for more details. In particular, we did not completely fix #1327, "Classloaders cannot GC, which exhausts permgen." Jython uses instances of ThreadLocal-managed class, ThreadState, to manage its execution state, including frames, exceptions, and the global namespace. The ThreadState also indirectly refers to the ClassLoaders used by Jython. Such usage can cause resource leaks when a Jython application is restarted under certain app containers, because the ThreadState often may not cleaned up by the app server's thread pool. Fixing this problem without a backwards breaking API change appears to be difficult. Therefore we recommend exploring workarounds, such as the one published in this blog post, http://weblogs.java.net/blog/jjviana/archive/2010/06/09/dealing-glassfish-301-memory-leak-or-threadlocal-thread-pool-bad-ide Jython 2.6 will introduce limited backwards breaking API changes, so it will be possible to fully resolve this bug, and related issues, in that version instead. And -- last but not least -- please help spread the word: Organizations using Jython 2.2.1, or earlier, should test their code against 2.5.2 beta 2 now so that bug fixes and/or workarounds may be identified. In particular, please note the following: * No additional work is anticipated on Jython 2.2. * Jython 2.5.2 is the last release in Jython 2.5.x series that will address non-severe issues, including Java integration issues. * Jython 2.6 development will begin immediately following the 2.5.2 release. Jython 2.6 will require the use of JDK 6. The release was compiled on Mac OS X with JDK 5 and requires JDK 5 to run. Please try it out and report any bugs at http://bugs.jython.org.

2016-07-29

TI CC2540 USB CDC Serial Port

TI CC2540 USB CDC Serial Port

2016-07-29

Calculator VC MFC 做的简单计算器

Calculator VC MFC 做的简单计算器 包里有:基于VC的MFC计算器案例步骤及源代码,从网上下载的一个支持表达式计算的计算器源码包,自己做的一个简单计算器,能实现加减乘除等基本计算,可以不清零直接进行后续计算,包括使用上次结果计算和重新开始一次计算

2016-07-29

设计一个模拟计算器的程序,要求能对包含加、减、乘、除、括号运算符及SQR和ABS函数的任意整型表达式进行求解。

设计一个模拟计算器的程序,要求能对包含加、减、乘、除、括号运算符及SQR和ABS函数的任意整型表达式进行求解。

2016-07-29

crawler4j-3.5-all.rar crawler4j最新依赖包+ 源码 3.5版本

crawler4j最新依赖包+ 源码 3.5版本

2016-07-29

org.apache.http jar包

import org.apache.http.Header; import org.apache.http.HttpException; import org.apache.http.HttpRequest; import org.apache.http.HttpRequestInterceptor; import org.apache.http.HttpResponse; import org.apache.http.HttpStatus; import org.apache.http.NameValuePair; import org.apache.http.client.entity.UrlEncodedFormEntity; import org.apache.http.client.methods.HttpGet; import org.apache.http.client.methods.HttpPost; import org.apache.http.conn.scheme.Scheme; import org.apache.http.conn.ssl.SSLSocketFactory; import org.apache.http.impl.client.DefaultHttpClient; import org.apache.http.message.BasicNameValuePair; import org.apache.http.params.CoreConnectionPNames; import org.apache.http.protocol.HttpContext; jar包

2016-07-29

使用SQL Server开发服务器端应用程序

在学生-课程数据库中,编写存储过程或触发器,完成以下功能: 1.将一个新学生元组(通过实参得到)插入student表中; 2.将一个新课程元组(通过实参得到)插入course表中; 3.输入某个学生的某门课程成绩(通过实参得到); 4.逐条(使用游标)浏览某个系(通过实参得到)的学生记录; 5.统计任意一门课程的成绩分布情况,即按照各分数段统计人数; 6.统计每个学生(通过实参得到)的平均成绩及排名; 7.将学生选课成绩从百分制改为等级制(即A、B、C、D、E)显示。 8.创建一个触发器,删除学生表中记录的同时删除选修表中相应的选课记录。

2016-06-06

Java数据结构和算法

Java数据结构和算法

2016-06-06

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除