2014年3月29日

【Mysql】lock tables

摘要: The LOCK TABLES privilegeenables the use of explicit LOCK TABLES statements to lock tables for which you havethe SELECT privilege. Thisincludes the use of write locks, which prevents other sessionsfrom reading the locked tablecreate database Susake;use Susake;create table Test(a int, b int);lock tab 阅读全文

posted @ 2014-03-29 01:50 至死丶不渝 阅读(227) 评论(0) 推荐(0) 编辑

【Windows API】Button Control Macros

摘要: ①Button_EnableEnables or disables a button②Button_GetCheckGets the check state of a radio button or check box. You can use this macro or send the BM_GETCHECK message explicitly③Button_GetIdealSizeGets the size of the button that best fits the text and image, if an image list is present. You can use 阅读全文

posted @ 2014-03-29 01:21 至死丶不渝 阅读(449) 评论(0) 推荐(0) 编辑

2014年3月28日

【括号匹配】

摘要: 1.当遇到左括号时,将其入栈2.当遇到右括号时,若栈非空,则与当前top匹配,再top出栈,若栈空,则缺左括号3.当串扫描完,若栈非空,则说明缺右括号,若栈空,则匹配成功#define _CRT_SECURE_NO_WARNINGS#include #define MAX 100char stack[MAX];int main(int argc, char *argv[]){ int N, top, flag; char ch; scanf("%d%*c", &N); while (N--) { top = 0, flag = 1; ... 阅读全文

posted @ 2014-03-28 16:47 至死丶不渝 阅读(262) 评论(0) 推荐(0) 编辑

【Mysql】drop

摘要: The DROP privilege enables youto drop (remove) existing databases, tables, and views.create database Susake;use Susake;create table Test(a int, b int);drop table Test;drop database Susake; 阅读全文

posted @ 2014-03-28 14:48 至死丶不渝 阅读(148) 评论(0) 推荐(0) 编辑

【KMP】

摘要: KMP(克鲁特-莫里斯-普拉特算法)--子串的定位 效率O(n + m)如主串S ababcabcacbab 子串P abcacnext[i]的值的确定 --- 通过求出p1...pk-1 = pj-k+1.....pj-1的最大k值则上述abcac1 02 13 3-1为ab 14 4-1为abc 15 5-1为abca 2 (首尾a)试一试abcabc1 02 13 3-1为ab 14 4-1为abc 15 5-1为abca 2 (首尾a)6 6-1为abcab 3 (首尾ab)再试试ababaaaba1 02 13 3-1为ab 14 ... 阅读全文

posted @ 2014-03-28 14:16 至死丶不渝 阅读(111) 评论(0) 推荐(0) 编辑

【Windows API】Button Control Functions

摘要: ①CheckDlgButtonChanges the check state of a button control②CheckRadioButtonAdds a check mark to (checks) a specified radio button in a group and removes a check mark from (clears) all other radio buttons in the group③IsDlgButtonCheckedThe IsDlgButtonChecked function determines whether a button contr 阅读全文

posted @ 2014-03-28 14:07 至死丶不渝 阅读(273) 评论(0) 推荐(0) 编辑

【Mysql】create

摘要: The CREATE privilege enablescreation of new databases and tables.create database Susake;use Susake;create table Test(a int, b int); 阅读全文

posted @ 2014-03-28 13:12 至死丶不渝 阅读(127) 评论(0) 推荐(0) 编辑

导航