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) 编辑

导航