- 博客(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 5551
转载 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 2243
原创 基础练习 01字串
问题描述对于长度为5位的一个01串,每一位都可能是0或1,一共有32种可能。它们的前几个是:0000000001000100001100100请按从小到大的顺序输出这32种01串。输入格式本试题没有输入。输出格式输出32行,按从小到大的顺序每行一个长度为5的01串。样例输出00000
2015-12-06 11:27:46 2127
原创 基础练习 闰年判断
问题描述给定一个年份,判断这一年是不是闰年。当以下情况之一满足时,这一年是闰年:1. 年份是4的倍数而不是100的倍数;2. 年份是400的倍数。其他的年份都不是闰年。输入格式输入包含一个整数y,表示当前的年份。输出格式输出一行,如果给定的年份是闰年,则输出yes,否则输出no。说明:当试题指定你输出一个字
2015-12-06 11:25:38 2039
原创 入门训练 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 2324
原创 入门训练 序列求和
问题描述求1+2+3+...+n的值。输入格式输入包括一个整数n。输出格式输出一行,包括一个整数,表示1+2+3+...+n的值。样例输入4样例输出10样例输入100说明:有一些试题会给出多组样例输入输出以帮助你更好的做题。一般在提交之前所有这些样例都需要测试通过才行,但这不代表这几组样例数
2015-12-06 11:14:53 2164
原创 入门训练 圆的面积
问题描述给定圆的半径r,求圆的面积。输入格式输入包含一个整数r,表示圆的半径。输出格式输出一行,包含一个实数,四舍五入保留小数点后7位,表示圆的面积。说明:在本题中,输入是一个整数,但是输出是一个实数。对于实数输出的问题,请一定看清楚实数输出的要求,比如本题中要求保留小数点后7位,则你的程序必须严格的输出7位小数,输出过多或者过少的小数位
2015-12-05 23:13:18 2434
原创 入门训练 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 2161
原创 第六届蓝桥杯大赛个人赛(软件类)校内选拔题目\Java大学B组\1题
原题:java中提供了对正则表达式的支持。有的时候,恰当地使用正则,可以让我们的工作事半功倍!如下代码用来检验一个四则运算式中数据项的数目,请填写划线部分缺少的代码。注意:只填写缺少代码,不要写任何多余内容,例如,已有的双引号。public class A{public static int f(String s){return s.sp
2015-12-05 23:04:17 3886
原创 JAVA中This指针的三种常用方法
/* 2015年10月15日22:55:34 this指针是隐藏在方法内的一个形参 不用给他显式的去传递参数 他始终指向调用该方法的对象, 因为对象调用方法时隐式把对象引用传给了this 常见使用一: 见下代码public A(char c)方法 this主要用于属性的初始化时,构造函数形参与类中属性相同时的处理 常见使用二: 见代码
2015-10-15 23:36:11 4056
jython.jar
2016-07-29
Calculator VC MFC 做的简单计算器
2016-07-29
设计一个模拟计算器的程序,要求能对包含加、减、乘、除、括号运算符及SQR和ABS函数的任意整型表达式进行求解。
2016-07-29
org.apache.http jar包
2016-07-29
使用SQL Server开发服务器端应用程序
2016-06-06
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人