posts - 14,  comments - 0,  views - 9435
摘要: int main(int argc, const char * argv[]) { // insert code here... FILE * fp = fopen("test.txt", "w"); fprintf(fp, " %d %d", 3, 5); int x = 4; fwrite(&x 阅读全文
posted @ 2017-07-05 17:56 FANNY1995 阅读(977) 评论(0) 推荐(0)
摘要: struct tree{ struct tree *left; struct tree *right; }; typedef struct tree newtree; int main(int argc, const char * argv[]) { // insert code here... p 阅读全文
posted @ 2017-04-10 14:26 FANNY1995 阅读(151) 评论(0) 推荐(0)
摘要: /* * 宏的写法,宏的作用域,当前位置开始到大括号结束,如果没有大括号,到文件结尾。 */ #include <stdio.h> //#define HELLO int main(int argc, const char * argv[]) { // insert code here... #if 阅读全文
posted @ 2017-03-27 14:22 FANNY1995 阅读(2374) 评论(0) 推荐(0)
摘要: 1. cat /proc/version 可以查看操作系统内核版本 http://www.myhack58.com/Article/sort099/sort0102/2013/38683.htm 阅读全文
posted @ 2016-11-09 11:47 FANNY1995 阅读(139) 评论(0) 推荐(0)
摘要: 1. 如果在一个form里有summit按钮,则只能提交本form的内容 阅读全文
posted @ 2016-11-04 16:07 FANNY1995 阅读(219) 评论(0) 推荐(0)
摘要: 1. 字段如果不设置auto_increment和default的值,是不允许插入表的。 2. insert into student(id, name) values("1", "2"); 3. 还有一种insert反式,insert into student set id = "1", name 阅读全文
posted @ 2016-11-03 22:45 FANNY1995 阅读(1076) 评论(0) 推荐(0)
摘要: 1. java 里的 Date date = new Date()(java.util.Date) 得到 Thu Nov 03 22:19:43 CST 2016, 通过Timestamp stamp = new Timestamp(date.getTime()); 可以得到 2016-11-03 阅读全文
posted @ 2016-11-03 22:25 FANNY1995 阅读(1173) 评论(0) 推荐(0)
摘要: 1. 借鉴http://blog.chinaunix.net/uid-7374279-id-4255927.html 字段名为blob,有四种类型 TinyBlob(255B)、Blob(65k)、MediumBlob(16M)、LongBlob(4G) 例子: create table test 阅读全文
posted @ 2016-10-29 20:35 FANNY1995 阅读(2733) 评论(0) 推荐(0)
摘要: 慢慢尝试使用vim,不断学习使用新的快捷键,将常用快捷键但经常容易忘的写下来, 1. 复制黏贴 命令行模式下按住v选中,y表示复制,d表示剪切,p为复制。 阅读全文
posted @ 2016-10-29 19:38 FANNY1995 阅读(96) 评论(0) 推荐(0)
摘要: jsp语法 1. declaration 由于访问serlvet只有一个,<%! int i = 0; %> 是servlet的变量,刷新时会不断增加 <% int i = 0; %> 局部变量,每次访问都会加1 <%! int i = 0; public void func() {} %> 2. 阅读全文
posted @ 2016-10-29 14:13 FANNY1995 阅读(109) 评论(0) 推荐(0)
< 2025年6月 >
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 1 2 3 4 5
6 7 8 9 10 11 12

点击右上角即可分享
微信分享提示