整型转16进制: int devIdInt =
Integer.parseInt(devId); String devIdString =
Integer.toHexString(devIdInt);16进制转为字节:byte devBin = (byte) Integer.parseInt...
分类:
编程语言 时间:
2014-05-04 19:41:29
阅读次数:
577
Chapter05变量的更多内容5.1类型转换1.无论什么类型,所有的数据都是一系列的位,即一组0和1。变量的含义是通过解释这些数据的方式来传达的。最简单的示例是char类型,这种类型用一个数字表示Unicode字符集中的一个字符。实际上,这个数字与ushort的存储方式相同----他们都是存储0~...
分类:
其他好文 时间:
2014-05-04 19:34:58
阅读次数:
379
$_SERVER 是一个包含了诸如头信息(header)、路径(path)、以及脚本位置(script locations)等等信息的数组。这个数组中的项目由 Web 服务器创建。不能保证每个服务器都提供全部项目;服务器可能会忽略一些,或者提供一些没有在这里列举出来的项目。
下表列出了所有 $_SERVER 变量中的重要元素。...
分类:
Web程序 时间:
2014-05-04 18:52:18
阅读次数:
448
情境:在用delphi7编程时,想要给查询出的结果一个编号,比如有一万条结果,就自动从1编号到10000
显示数据时用的是DBGrid控件,但是它的第一列无法很好的显示编号,找了很多方法都不能如愿
后又选用stringgrid,自己在第一列显示序号,效果达到了,但是却没有DBGrid速度快。
最后采用了显示依然使用DBG...
分类:
数据库 时间:
2014-05-04 18:42:34
阅读次数:
518
#include "stdafx.h"
#include
#include
#include
using namespace msclr::interop;
using namespace System;
int main(array ^args)
{
// 为了可以打印wstring到控制台
std::wcout.imbue(std::locale("chs"));
// 声明...
分类:
编程语言 时间:
2014-05-04 18:30:58
阅读次数:
418
#define _CRT_SECURE_NO_WARNINGS
#include"stdio.h"
#include"stdlib.h"
#include"string.h"
void MyPrintf(char **);
void MYSORT(char **, int);
void SORTBUF(char **);
void main()
{
int i = 0;
int j = 0...
分类:
其他好文 时间:
2014-05-04 18:13:12
阅读次数:
341
网上有很多SQL连接方式的登录验证,但没有oracle连接方式的,我摸索了一上午写了这个可执行的函数,分享给大家
// 用户登录检查
public bool LoginCheck(string f_LoginName, string f_LoginPass)
{
bool result = false;
// 正则表达式检查
if (Regex.IsMatch(f_LoginN...
分类:
Web程序 时间:
2014-05-04 18:12:46
阅读次数:
323
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1015
深搜简单题
代码如下:
#include
#include
#include
#include
using namespace std;
string a;
int t;
int v,w,x,y,z;
int vis[20];
int b[6];
int flag;
int cmp(int...
分类:
其他好文 时间:
2014-05-04 18:09:00
阅读次数:
352
http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=3143
把矩阵变成一行,然后计算位置,lrj给了线段树数组做法 但是我做的线段树空间过大,直接爆掉,所以换方法了
主要还是测试自己的线段树区间更新的模板
各种RE+WA之后AC,,,,,
...
分类:
其他好文 时间:
2014-05-04 18:06:36
阅读次数:
412
package mytest;
import java.util.*;;
public class mymain {
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.print(new Date());
Properties p=System.get...
分类:
编程语言 时间:
2014-05-04 17:52:02
阅读次数:
363