博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2010年9月8日

摘要: 今天工作中遇到需要将多个sql脚本合并到一个脚本里面,一开始是准备一个一个的复制的,但复制几个之后忽然想起好像有什么命令可以合并文件的,于是乎上网查了一下,还真有,命令类似于下面这样:代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--@echoof... 阅读全文

posted @ 2010-09-08 20:45 还好 阅读(7197) 评论(1) 推荐(0) 编辑

2010年9月7日

摘要: 前几天在看C++视频教程的时候提到了一个const函数,个人觉得const函数简单一点说就是在函数体内不能修改类的成员,在C#里面是没有这个说法的,在此记录一下!以后写C++代码待注意了,凡是不用修改类的成员的函数尽量定义为const函数!比如在取成员变量的值的时候,这样也可以尽量避免bug,而且是在编译的时候就不能通过!另外就是const函数是不能调用非const函数的,即是是哪个非const函... 阅读全文

posted @ 2010-09-07 22:30 还好 阅读(3385) 评论(1) 推荐(0) 编辑

2010年8月24日

摘要: Fibonacci NumbersTime Limit: 1 Second Memory Limit: 32768 KB A Fibonacci sequence is calculated by adding the previous two members of the sequence, with the first two members being both 1. f(1) = 1, ... 阅读全文

posted @ 2010-08-24 21:49 还好 阅读(1049) 评论(0) 推荐(0) 编辑

2010年8月22日

摘要: Oil DepositsTime Limit: 1 Second Memory Limit: 32768 KB The GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large rectangular reg... 阅读全文

posted @ 2010-08-22 16:01 还好 阅读(376) 评论(0) 推荐(0) 编辑

摘要: Robot MotionTime Limit: 1 Second Memory Limit: 32768 KB A robot has been programmed to follow the instructions in its path. Instructions for the next direction the robot is to move are laid down in a... 阅读全文

posted @ 2010-08-22 10:48 还好 阅读(1635) 评论(2) 推荐(1) 编辑

2010年8月16日

摘要: 今天看到一篇文章是关于SQL系统函数的文章,感觉蛮不错的,虽然有很多函数我没用过,而且整篇文章我也没有全看完(需要的时候再看^_^),不过还是要转载一下,已备后用!呵呵。。。原文地址:http://www.cnblogs.com/sunnycoder/archive/2010/08/15/1800233.html原文章作者还提供PDF文档下载,感兴趣的不妨去看看! 阅读全文

posted @ 2010-08-16 09:38 还好 阅读(424) 评论(0) 推荐(0) 编辑

2010年8月14日

摘要: Number SequenceTime Limit: 1 Second Memory Limit: 32768 KB A single positive integer i is given. Write a program to find the digit located in the position i in the sequence of number groups S1S2...Sk... 阅读全文

posted @ 2010-08-14 21:14 还好 阅读(2179) 评论(0) 推荐(1) 编辑

2010年8月12日

摘要: 最近在写SP的时候遇到了将表中数据列转行的问题,在此记录一下,以备后用!有不对或不妥之处,还望大家能够指出!谢谢!首先我用的是一个View,这个view大概是下面这样子的:一个AccountNum有多种PaymentType,每种PaymentType对应一个Amount,现在要求根据accountnum求出所有的PaymentType的amount,刚开始我是join了这个View 6次(我只需... 阅读全文

posted @ 2010-08-12 20:29 还好 阅读(5096) 评论(1) 推荐(0) 编辑

2010年8月11日

摘要: 先看题目:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=1589转化一下题目意思就是说给定几组大小关系(26个大写字母),然后输出根据这些大小关系可以推导出的其他所有的大小关系!例如A<B,C>B,C<D,则可以推导出A<C,A<D,B<D。这是一道很不错的深度优先算法题,通过这道题个人... 阅读全文

posted @ 2010-08-11 20:42 还好 阅读(1284) 评论(3) 推荐(1) 编辑

2010年8月8日

摘要: 最近在做Central Europe 2001一道竞赛题目,原题地址:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=1385,考虑了N久就是没做出来,而且我发现最近做了好几道有点难度的题目都没做出来,都大概知道一个思路,但实现起来确实还是有点困难,实在是有点悲剧,为了不打击自己的信心,于是就去找了一道比较简单的题目。先看题... 阅读全文

posted @ 2010-08-08 07:40 还好 阅读(1252) 评论(0) 推荐(1) 编辑