1.
题目:以9行9列的形式显示九九乘法表2.要求:显示下三角格式如表4.1所示,也可以上三角格式显示。 1 ; Example assembly language
program -- 2 ; Author: Karllen 3 ; Date: revised 05/2014 4 5 ....
分类:
编程语言 时间:
2014-05-23 09:04:43
阅读次数:
304
SDL的介绍
SDL是Simple DirectMedia Layer(简易直控媒体层)的缩写。它是一个跨平台的多媒体库,以用于直接控制底层的多媒体硬件的接口。这些多媒体功能包括了音频、键盘和鼠标(事件)、游戏摇杆等。当然,最为重要的是提供了 2D图形帧缓冲(framebuffer)的接口,以及为 OpenGL 与各种操作系统之间提供了统一的标准接口以实现 3D图形。从这些属性我们可以...
分类:
其他好文 时间:
2014-05-22 12:21:15
阅读次数:
718
就拿杭电OJ上的第1003题开始吧,这题比原书要复杂一些。
Problem Description
Given a sequence a[1],a[2],a[3]......a[n], your job is to calculate the max sum of a sub-sequence. For example, given (6,-1,5,4,-7), the max sum...
分类:
其他好文 时间:
2014-05-22 07:07:27
阅读次数:
322
问题
Given a singly linked list L: L0→L1→…→Ln-1→Ln,
reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→…
You must do this in-place without altering the nodes' values.
For example,
Given {1,2,3,4}, reorde...
分类:
其他好文 时间:
2014-05-22 07:04:46
阅读次数:
298
上一篇我们讲了MongoDB 的命令入门初探,本篇blog将基于上一篇blog所建立的数据库和表完成一个简单的Java MongoDB CRUD Example,利用Java连接MongoDB数据库,并实现创建数据库、获取表、遍历表中的对象、对表中对象进行CRUD操作等例程。
1、下载MongoDB Java 支持驱动包
【gitHub下载地址】https://github.com/mon...
分类:
数据库 时间:
2014-05-22 06:53:47
阅读次数:
401
package com.example.ceshi;import
android.content.Context;import android.graphics.Canvas;import
android.graphics.Color;import android.graphics.Paint;im...
分类:
其他好文 时间:
2014-05-22 01:59:09
阅读次数:
288
package com.example.ceshi;import
android.app.Activity;import android.content.Context;import
android.opengl.Visibility;import android.util.AttributeSet...
分类:
其他好文 时间:
2014-05-22 01:55:56
阅读次数:
292
Given a string, determine if it is a
palindrome, considering only alphanumeric characters and ignoring cases.For
example,"A man, a plan, a canal: Pana...
分类:
其他好文 时间:
2014-05-21 21:20:54
阅读次数:
291
1、由于gvim是gui部分,需要新建_gvimrc配置文件,在里面加入下面内容即可。setnobackup2、打开vim7x目录下gvimrc_example.vim,修改或者加入下面内容。ifhas(“vms”)
setnobackup
else
#setbackup
endif
分类:
其他好文 时间:
2014-05-20 18:04:38
阅读次数:
220
【题目】
Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring.
For "(()", the longest valid parentheses substring is "()", which has length = 2.
Another example is ")()())", whe...
分类:
其他好文 时间:
2014-05-20 16:39:07
阅读次数:
280