水。。
#include
#include
#include
#include
#include
#include
#include
using namespace std;
#define N 100
double a[N];
bool cmp(double x, double y){
return x>y;
}
int n;
double quick(double x...
分类:
其他好文 时间:
2014-09-13 18:49:55
阅读次数:
180
本系列所有文章可以在这里查看http://blog.csdn.net/cloud_castle/article/category/2123873...
分类:
其他好文 时间:
2014-09-13 17:20:15
阅读次数:
332
$filename = dirname(__FILE__) . '/oldfilename.jpg';$out_filename = 'newfilename.jpg';if( ! file_exists($filename)){ echo 'Not Found' . $filename; ex.....
分类:
Web程序 时间:
2014-09-13 17:15:35
阅读次数:
281
和上题一样,不过,更简单了#include #include #include #include #include using namespace std;const int MOD=29;int quick(int a,int b,int m){ int res=1; while(b){ if(....
分类:
其他好文 时间:
2014-09-13 11:52:25
阅读次数:
140
function msubstr($str, $start=0, $length, $charset="utf-8", $suffix=true) { ? ? ? ? if(function_exists("mb_substr")) ? ? ? ? ? ? $slice = mb_substr($str, $start, $length, $charset); ? ?...
分类:
其他好文 时间:
2014-09-13 10:47:55
阅读次数:
190
CREATE DATABASE IF NOT EXISTS mydb DEFAULT CHARSET utf8 COLLATE utf8_general_ci;CREATE USER 'root'@'%' IDENTIFIED BY '123456';GRANT ALL PRIVILEGES ON ...
分类:
数据库 时间:
2014-09-12 22:03:14
阅读次数:
285
判断字段是否存在: 1 DROP PROCEDURE IF EXISTS schema_change; 2 DELIMITER // 3 CREATE PROCEDURE schema_change() BEGIN 4 DECLARE CurrentDatabase VARCHAR(100)...
分类:
数据库 时间:
2014-09-12 19:04:33
阅读次数:
181
1、myelicpse常用快捷键 内容提示(Content Assist):Alt + / 快速修复(Quick Fix):Ctrl + 1 导包:ctrl + shift + O 格式化代码块:ctrl + shift + F ---> 配置代码自动格式化 添加(除去)块注释 Ctrl+...
分类:
编程语言 时间:
2014-09-12 18:49:23
阅读次数:
238
举个例子:import csvimport ospath='/tmp/'file='test.csv'def generate_csv(path,file): if not os.path.exists(path): os.mkdir(path) files=os.path...
分类:
编程语言 时间:
2014-09-12 16:51:53
阅读次数:
235
DECLARE @what varchar(800) SET @what='lll' --要搜索的字符串DECLARE @sql varchar(8000)DECLARE TableCursor CURSOR LOCAL FOR SELECT sql='IF EXISTS ( SELECT 1 FR...
分类:
数据库 时间:
2014-09-12 14:49:53
阅读次数:
258