开放-关闭原则:是说软件实体(类、模块、函数等等)应该可以扩展,但是不可修改[ASD]。这其实说明了两个特征,一个是“对于扩展是开放的(Open for
extension)”,另一个是“对于更改是封闭的(Closed for modification)”[ASD]。对扩展开放,意味着有新的需求或变...
分类:
其他好文 时间:
2014-05-14 04:15:09
阅读次数:
266
oracle 数据导入时imp 用户名/密码@服务名 file =文件路径.dmp fromuser=
touser=执行命令之前应将数据库里面 myobject下的所有view 索引 存储过程 等删除掉 在执行命令 不然会报错
分类:
数据库 时间:
2014-05-14 03:00:18
阅读次数:
345
实例1:读写字符文件,每次读取一个字符。#include<stdio.h>#include<stdlib.h>intmain(){FILE*fpin;FILE*fpout;charc;fpout=fopen("c:\\dest.txt","wt");if((fpin=fopen("c:\\test.txt","rt"))!=NULL){c=fgetc(fpin);while(c!=EOF){fputc(c,fpout);c=fgetc(fpin);..
分类:
编程语言 时间:
2014-05-12 03:57:13
阅读次数:
238
实例3:读写字节文件,每次读入一个缓存里面。#include<stdio.h>#include<stdlib.h>#defineMAXLEN1024intmain(){FILE*fpin;FILE*fpout;unsignedcharbuf[MAXLEN];intc;fpout=fopen("c:\\dest.jpg","wb");if((fpin=fopen("c:\\test.jpg","rb"))!=NULL){c=fread(buf,s..
分类:
编程语言 时间:
2014-05-12 03:47:54
阅读次数:
244
1在mysql中默认是不会开启慢查询日志功能的,我们可以使用showvariableslike‘%slow%‘来查看一下。结果如下:参数说明:log_slow_queries表示服务器端是否开启慢查询日志记录功能,slow_query_log表示mysql监测满查询的功能是否开启,slow_query_log_file表示保存日志文件的物理..
分类:
数据库 时间:
2014-05-12 03:42:46
阅读次数:
354
在web项目中,ajax运用非常频繁,今天就给大家展示下DjangoajaxPost的使用方法templates模板---------------------index.html<html>
<header></header>
<body>
<p>name:<inputtype="text"name="nickname"/></p>
<inputclass="nam..
分类:
其他好文 时间:
2014-05-12 03:23:21
阅读次数:
359
实例2:读取字符文件,每次读入一个缓存里面。#include<stdio.h>#include<stdlib.h>#defineMAXLEN1024intmain(){FILE*fin;FILE*fout=fopen("c:\\dest.txt","wt");charbuf[MAXLEN];if((fin=fopen("c:\\test.txt","rt"))!=NULL){char*c=fgets(buf,MAXLEN,fin);while(..
分类:
编程语言 时间:
2014-05-12 02:57:48
阅读次数:
251
#include
#include
using namespace std;
#ifdef ONLINE_JUDGE
#define FINPUT(file) 0
#define FOUTPUT(file) 0
#else ...
分类:
其他好文 时间:
2014-05-11 18:36:16
阅读次数:
245
读写本应用程序数据文件夹中的文件
此种方法读写的文件在/data/data/中
android 中提供了 openFileInput(String fileName)
和 openFileOutput(String fileName, int mode) 两个方法来读取本应用程序数据文件夹中的文件和向其写入。
openFileInput...
分类:
移动开发 时间:
2014-05-11 18:34:50
阅读次数:
480
#include
#include
using namespace std;
#ifdef ONLINE_JUDGE
#define FINPUT(file) 0
#define FOUTPUT(file) 0
#else ...
分类:
其他好文 时间:
2014-05-11 18:33:34
阅读次数:
246