如果使用typedef 是这样的//可以把一个小写字母变成大写//char
(*pFun)(char); typedef char (*PTRFUN)(char); PTRFUN pFun; char glFun(char a){
return a & 223;} void print(int a....
分类:
编程语言 时间:
2014-05-17 01:24:44
阅读次数:
315
1import java.security.MessageDigest;import
java.security.NoSuchAlgorithmException;public class MD5 { // MD5変換 public static
String Md5(String st...
分类:
其他好文 时间:
2014-05-17 01:01:56
阅读次数:
215
这是错误程序#include#include#include#include#include#includeusing
namespace std;mapcow;int main(){ //freopen("in.txt","r",stdin); char
str[1000],name[...
分类:
其他好文 时间:
2014-05-17 00:59:53
阅读次数:
266
环境:vs2013在下面的代码中1 //类似于下面的代码2 3
foo(char*,char*,char*);4 5 char* str ="A#B#C";6 7
foo(strtok(str,"#"),strtok(NULL,"#"),strtok(NULL,"#")); 预计让函数foo得到("...
分类:
其他好文 时间:
2014-05-16 23:52:09
阅读次数:
400
Qt设置windows系统时间网上的回答很多,但很少有一步到位的,一般会有8小时时差,下面给出直接解决代码:
#include "windows.h"void Dialog::setTime() { SYSTEMTIME st;
GetLocalTime(&st);//关键在这里 st.wHour....
“炫舞家“ST时间限制:3000 ms | 内存限制:65535
KB难度:3描述ST是一个酷爱炫舞的玩家。TA很喜欢玩QQ炫舞,因此TA也爱屋及乌的喜欢玩跳舞机(Dance Dance
Revolution,DDR)。但是TA每天还要努力的学习,因此TA希望每次都保存最多的体力来学习。DDR的主要...
分类:
其他好文 时间:
2014-05-14 09:27:10
阅读次数:
315
发了两天的时间来解决配置Oracle
监听器来使用SQL操作ST_Geometry的配置,网上搜索一大片,结果真正找到的只有方法可用,下面把这个方法我个人在总结下。ArcSDE10.1配置Oracle
监听器来使用SQL操作ST_Geometry和其他版本的配置区别还是有很多不同的,不过不像网上说的...
分类:
数据库 时间:
2014-05-14 07:53:51
阅读次数:
428
将数组转成字符串/// /// 将数组转成字符串/// /// 分隔符///
要字符串数组private string Implode(char glue,string[] pieces) { string result =
string.Empty; int count = piece...
分类:
其他好文 时间:
2014-05-14 07:48:42
阅读次数:
363
1、使用FileStream读写文件文件头:using System; using
System.Collections.Generic; using System.Text; using System.IO; 读文件核心代码: byte[]
byData = new byte[100]; char...
分类:
其他好文 时间:
2014-05-13 10:57:52
阅读次数:
262