解法: 1 class Solution { 2 public: 3 int reverse(int x) { 4 int signal = (x>0)? 1:-1; /* signal记录正负号 */ 5 x=abs(x); 6 int ...
分类:
其他好文 时间:
2014-07-29 11:25:06
阅读次数:
197
1 #include 2 #include 3 using namespace std; 4 #define max(a,b) ((a)>(b) ? (a) : (b)) 5 #define abs(a) ((a)>0 ? (a) : (-a)) 6 int foo(int x, int y) 7....
分类:
其他好文 时间:
2014-07-28 23:46:34
阅读次数:
331
oracle的函數很多﹐特整理出來﹕abs(m)m的绝对值mod(m,n)m被n除后的余数power(m,n)m的n次方round(m[,n])m四舍五入至小数点后n位的值(n缺省为0)trunc(m[,n])m截断n位小数位的值(n缺省为0)字符函数:initcap(st)返回st将每个单词的首字...
分类:
数据库 时间:
2014-07-28 15:38:53
阅读次数:
412
--------------创建文件夹-----------------打开高级选项exec sp_configure 'show advanced options',1reconfigure--重启配置--开启xp_cmdshell功能(开启后能使用dos命令)exec sp_configure ...
分类:
数据库 时间:
2014-07-27 10:36:52
阅读次数:
297
Moving TablesThe famous ACM (Advanced Computer Maker) Company has rented a floor of a building who...
分类:
其他好文 时间:
2014-07-26 14:22:30
阅读次数:
263
EXEC sp_configure 'show advanced options', 1; RECONFIGURE;EXEC sp_configure 'xp_cmdshell', 1; EXEC sp_configure 'show advanced options', 0; RECONFI...
分类:
其他好文 时间:
2014-07-25 16:45:21
阅读次数:
272
前言本文翻译自TopCoder上的一篇文章:Dynamic Programming: From novice to advanced,并非严格逐字逐句翻译,其中加入了自己的一些理解。水平有限,还望指摘。前言_我们遇到的问题中,有很大一部分可以用动态规划(简称DP)来解。 解决这类问题可以很大地提升你...
分类:
其他好文 时间:
2014-07-25 02:34:54
阅读次数:
284
/**
* 授权
*/
EXEC sp_configure 'show advanced options',1;
go
reconfigure;
go
exec sp_configure 'xp_cmdshell',1;
go
reconfigure;
go
/**导入指定表的文本文件*/
EXEC master..xp_cmdshell 'bcp dbname..tablename in...
分类:
数据库 时间:
2014-07-24 23:32:13
阅读次数:
374
Linnux中有些命令的功能非常强大,主要是因为它支持的命令选项比较多。如:【ip】命令可以配置IP地址、路由条目的配置管理操作非常完善,该命令就可以完成【ifconfig】和【route】命令实现的所有功能。函数是单独的功能模块,如果函数能够接收选项参数,那么该函数的功能就变得..
分类:
其他好文 时间:
2014-07-24 17:53:07
阅读次数:
240
#Red hat enterprise linux variants ##Two install sets available ##两种安装方案 ###Server rhel server rhea advanced platform ###Desktop rhel desktop workstation option Multi-OS option ##RH network #...
分类:
Web程序 时间:
2014-07-23 21:33:26
阅读次数:
283