编译之前的处理指令A.宏定义a.//Like static constant#define NUM6//The truth of macro define is replacing the constant//Replace "sum(a, b)" with "a+b"#define sum(a, ...
分类:
其他好文 时间:
2014-11-10 15:22:20
阅读次数:
155
一:回顾
(1)c++中的string类是在面试中和笔试中经常考的题目;
(2)c++中的string类和fstream类合起来是处理外部数据的利器;
(3)string类经常用到find find_first_of find_first_not_of find_last_of find_last_not_of substr replace等,以及联合使用来达到java中的split和tri...
分类:
编程语言 时间:
2014-11-10 13:52:41
阅读次数:
297
//把日期转换成时间戳function get_unix_time(time1){ var newstr = time1.replace(/-/g,'/'); var date = new Date(newstr); var time_str = date.getTime().toString(.....
分类:
Web程序 时间:
2014-11-10 11:57:58
阅读次数:
197
mysql如何实现插入时如果不存在则插入如果存在则更新的操作?在Oracle中有merge into来实现记录已存在就更新的操作,mysql没有merge into语法,但是有replace into的写法,同样实现记录已存在就更新的操作。 SQL Server中的实现方法是:if not exis...
分类:
数据库 时间:
2014-11-09 23:31:08
阅读次数:
270
存储过程动态创建表,以时间给表命名create or replace procedure create_tableas v_sql varchar2(2000);begin v_sql:='create table ' || upper('tablename')|| replace(to_char(...
分类:
其他好文 时间:
2014-11-09 19:24:16
阅读次数:
171
这是一个非常有趣的后门,它并没有依靠正常模式去隐藏起内容(比如 base64/gzip 编码),但是它却把自己的数据隐藏在JPEG图片的EXIT头部中了。它也使用exif_read_data和preg_replace两个PHP函数来读取EXIF头部和执行。细节这个后门可分为两部分。第一部分是 exi...
分类:
Web程序 时间:
2014-11-09 15:14:58
阅读次数:
228
涉及图片的上传的过程,这篇的内容都是PHP,JQuery后面追加......
分类:
Web程序 时间:
2014-11-09 06:21:03
阅读次数:
196
经常会使用js动态设置css类,两种方法。1、classNameclassName是包含所有类的字符串,所以添加删除类就像操作字符串一样就好。添加类的话比较简单,直接obj.className += ' active';记得加空格。移除类,需要使用字符串replace函数。obj.className...
分类:
Web程序 时间:
2014-11-08 22:08:32
阅读次数:
401
SQL Server 中有两个參数,语法: ISNULL(check_expression, replacement_value)check_expression 与 replacement_value 数据类型必须一致 假设 check_expression 为 NULL,则返回 replace....
分类:
数据库 时间:
2014-11-08 20:49:10
阅读次数:
136
============问题描述============ 图片如上,为什么fragment不占满整个content啊?代码如下:Action.java:ft.replace(R.id.content,newNoteFragment());fragment.java:publicclassAllQue...
分类:
其他好文 时间:
2014-11-08 13:34:41
阅读次数:
113