C语言的语法太枯燥了 换个写法#include #include #define end }
#define if(x) if (x){
#define then #define while(x) while(x){ #define function(x) void function(x){
#de...
分类:
编程语言 时间:
2015-06-03 23:20:55
阅读次数:
286
字符串常用方法indexOf(substring,start) – 搜索一个字符串。如果没有匹配项,返回 -1 。lastIndexOf() – 从后面开始搜索一个字符串,如果没有匹配项,返回 -1 。slice(start,end) - 返回一个新的字符串,包含start位置,不包含end位置。可...
分类:
其他好文 时间:
2015-06-03 23:18:02
阅读次数:
146
计算若干个圆与一个矩形的面积并simpson公式 ans = ( f[l] + f[r] + 4 * f[mid] ) * (r-l) / 6 1 uses math; 2 type arr=record x,y:double; end; 3 const eps=1e-8; 4 var a,b,n,...
分类:
其他好文 时间:
2015-06-03 21:16:35
阅读次数:
126
c++中,vector是一个十分有用的容器。(1)头文件#include.(2)创建vector对象,vector vec;(3)尾部插入数字:vec.push_back(a);(4)使用下标访问元素,cout::iterator it;for(it=vec.begin();it!=vec.end(...
分类:
其他好文 时间:
2015-06-03 17:20:45
阅读次数:
89
如下的语句,@start和@end就是日期类型的参数set @sql='select * from '+cast(@viewName as nvarchar) +' where rcy_rq >= '+CONVERT(nvarchar(100), @start, 121)+' and rcy_rq ...
分类:
数据库 时间:
2015-06-03 15:37:22
阅读次数:
152
sql server 2008抓取方法:---------------------------------------SELECT 表名 = Case When A.colorder=1 Then D.name Else '' End, 表说明 = Case When A.colorder=1 .....
分类:
数据库 时间:
2015-06-03 13:23:52
阅读次数:
118
oracle---------------------------------------SELECT case when t.COLUMN_ID=1 then t.table_name end table_name, case when t.COLUMN_ID=1 then t2.commen.....
分类:
数据库 时间:
2015-06-03 13:17:25
阅读次数:
139
awk ‘{for(i=1;i<=NF;i++){a[FNR,i]=$i}}END{for(i=1;i<=NF;i++){for(j=1;j<=FNR;j++){printf a[j,i]" "}print ""}}‘ filename...
分类:
系统相关 时间:
2015-06-03 12:04:15
阅读次数:
237
oracle存储过程、声明变量、for循环1、创建存储过程create or replace procedure test(var_name_1 in type,var_name_2 out type) as --声明变量(变量名 变量类型)begin --存储过程的执行体end test;打印.....
分类:
数据库 时间:
2015-06-03 11:28:19
阅读次数:
246
Given a linked list, remove the nth node from the end of list and return its head.
For example,
Given linked list: 1->2->3->4->5, and n = 2.
After removing the second node from the end, the l...
分类:
其他好文 时间:
2015-06-03 10:03:29
阅读次数:
108