如果使用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
gdb vc调试对照表:实现功能 vc gdb修改后编译 f7 make跳出函数(step out)
shift+f11 finish,f重新启动 ctrl+shift+f5 run,r运行到指定行 f9+f5 tbreak,tb +
continue,c中断程序 ctrl+alt+break ct...
分类:
数据库 时间:
2014-05-17 00:28:01
阅读次数:
371
一次过 1 public class Solution { 2 public String
countAndSay(int n) { 3 if (n <= 0) return ""; 4 int i = 1; 5 String current
...
分类:
其他好文 时间:
2014-05-16 21:27:59
阅读次数:
267
Given a collection of intervals, merge all
overlapping intervals.For
example,Given[1,3],[2,6],[8,10],[15,18],return[1,6],[8,10],[15,18].public class
S...
分类:
其他好文 时间:
2014-05-16 08:44:29
阅读次数:
276
Function waitFn = new Function() {@Overridepublic
Boolean apply(WebDriver driver) { Point newPos =
page.getWDGAttrDetail().getLocation(); return newPo...
分类:
其他好文 时间:
2014-05-16 07:42:46
阅读次数:
259
首先贴一段代码:package xiao;import
java.util.Scanner;class CashSuper{ private int num; private double price; public
int getNum() { return num; } public void....
分类:
其他好文 时间:
2014-05-16 07:03:31
阅读次数:
314
首先说下考勤项目1、由于在手持机上面运行,所以需要屏蔽按键esc跟return,跟往常一样写了一个PreTranslateMessage函数,
然后if((pMsg->wParam == VK_ESCAPE || pMsg->wPram == VK_RETURN))
这样设置之后出现了一个问题了,....
分类:
其他好文 时间:
2014-05-16 06:12:34
阅读次数:
271
题目: Given an input string, reverse the string word
by word. For example, Given s = "the sky is blue", return "blue is sky
the".解题思路: 1、先对字符串进行一次总...
分类:
其他好文 时间:
2014-05-16 05:44:30
阅读次数:
263
辗转相除,又名欧几里德算法(Euclidean
algorithm)乃求两个正整数之最大公约数的算法。此处用函数的递归调用编写了一个小程序:int gcd(int a,int b){ if(a%b==0)
return b; else return gcd(b,a%b)...
分类:
其他好文 时间:
2014-05-14 10:20:27
阅读次数:
241
class base64{ /** * 加密字符串 * @access static * @param
string $data 字符串 * @param string $key 加密key * @return string */ publ...
分类:
Web程序 时间:
2014-05-14 10:18:23
阅读次数:
333