E -LISTime Limit:1000MSMemory Limit:65536KB64bit IO Format:%I64d & %I64uDescriptionThe world financial crisis is quite a subject. Some people are more...
分类:
其他好文 时间:
2015-08-12 21:38:12
阅读次数:
166
DescriptionThe world financial crisis is quite a subject. Some people are more relaxed while others are quite anxious. John is one of them. He is very...
分类:
其他好文 时间:
2015-08-12 21:14:10
阅读次数:
160
package com.hk.ztry;public interface Subject{ abstract public void request();}package com.hk.ztry;public class RealSubject implements Subject{ @...
分类:
其他好文 时间:
2015-08-12 16:37:15
阅读次数:
109
今天看到了https://www.qhee.com/node/activity-subject/busmanuals/页面上用到的fullpage.js(https://github.com/alvarotrigo/fullPage.js)视察滚动插件,对比了一下自己之前用的onepage-scro...
分类:
其他好文 时间:
2015-08-12 13:12:35
阅读次数:
114
DescriptionThe world financial crisis is quite a subject. Some people are more relaxed while others are quite anxious. John is one of them. He is very...
分类:
其他好文 时间:
2015-08-11 22:57:49
阅读次数:
111
From: Subject: =?gb2312?B?zsS8/snPtKvWrs6xQWpheLe9yr3Jz7SrIC0gTVIgQ08gLSCyqb/N1LA=?= Date: Sun, 3 Jun 2012 10:54:53 +0800 MIME-Version: 1.0 Content-T....
分类:
Web程序 时间:
2015-08-11 13:47:36
阅读次数:
484
本题链接:点击打开链接
本题题意:
有n名学生,m门课程,输入每个学生没门课程的成绩,求每个学生的平均成绩和没门课程的平均成绩,并统计每门课程的成绩均超过该课程平均成绩的学生有多少名。
解题思路:
本题主要是使用三个数组,一个score二维数组存放每个学生每门课的成绩,然后两个一维数组student和subject分别存放每个学生的平均成绩及每门课的平均成绩...
分类:
其他好文 时间:
2015-08-10 22:27:48
阅读次数:
164
个人对单例模式和观察者模式及事件的一点理解
2、观察者模式
观察者模式适用于某一个状态发生变化时,其他几处需要针对此变化做出不同的反应。符合接口隔离原则,实现了对象之间的松散耦合。
php SPL中已经提供了SplSubject和SqlOberver接口,分别编写被观察者类和观察者类实现这两个接口即可。
下边是一个demo:
class Subject implements...
分类:
Web程序 时间:
2015-08-07 22:21:19
阅读次数:
196
方法一:mysql误删root第一步:mysqld_safe--skip-grant-tables--skip-networking&(跳过密码启动)第二步:增加root表insertintousersetuser=‘root‘,ssl_cipher=‘‘,x509_issuer=‘‘,x509_subject=‘‘;第三步:root赋予权限updateusersetHost=‘localhost‘,select_priv=‘y‘,in..
分类:
数据库 时间:
2015-08-06 18:47:44
阅读次数:
151
/* 普通行列转换 (爱新觉罗.毓华?2007-11-18于海南三亚) ? 假设有张学生成绩表(tb)如下: Name?Subject?Result 张三?语文 74 张三?数学 83 张三?物理 93 李四?语文 74 李四?数学 84 李四?...
分类:
数据库 时间:
2015-08-06 17:06:14
阅读次数:
152