码迷,mamicode.com
首页 >  
搜索关键字:student    ( 6827个结果
Hibernate 一对多双向关联Demo
以Classes[班级]和Student[学生]为例的Demo//Classes.javapublic class Classes implements Serializable { private long cid; private String cname; private S...
分类:Web程序   时间:2015-01-12 23:57:02    阅读次数:208
15-01-12 C# 面向对象 11
继承,解决类中的代码冗余;我们写的类直接或者间接继承于Object类;里氏转换两条 1.子类可以赋值给父类,//如果有一个地方需要父类作为参数,我们可以给一个子类代替;Student s = new Student();Person p = s;Person p1 = new Student();2...
分类:Windows程序   时间:2015-01-12 23:49:40    阅读次数:351
Hibernate 一对多单向关联Demo
以Classes[班级]和Student[学生]为例的DemoClasses .javapublic class Classes implements Serializable { private long Cid; private String Cname; private St...
分类:Web程序   时间:2015-01-12 23:46:49    阅读次数:311
Studious Student Problem Analysis
(http://leetcode.com/2011/01/studious-student-problem-analysis.html)You've been given a list of words to study and memorize. Being a diligent student ...
分类:其他好文   时间:2015-01-12 20:45:59    阅读次数:140
2015-01-12 面向对象的程序设计
一,定义:面向对象中,类为最小的单位,通过类来进行交互例:首先新添加一个类student,在这个新建的类中,写入规则namespace mianxiangduixiang{ class student{ //类里可以定义成员变量,道理等同于结构体 public int code; //定义的...
分类:其他好文   时间:2015-01-12 17:10:45    阅读次数:144
Python中threading.local方法
#coding=utf-8 import threading # 创建全局ThreadLocal对象: localVal = threading.local() localVal.val = "Main-Thread" def process_student(): print '%s (in %s)' % (localVal.val, threading.current_thread()....
分类:编程语言   时间:2015-01-12 16:29:12    阅读次数:363
对JAVA的LIST进行排序
public List comparatorScoreAscTest(List jfAuctionList){ Collections.sort(jfAuctionList, new Comparator() { /* * int compare(Student o1, Student o2...
分类:编程语言   时间:2015-01-12 14:38:12    阅读次数:112
Python操作MySQL
# coding=utf-import MySQLdb#查询数量 def Count(cur):count=cur.execute( 'select * from Student' )print 'there has %s rows record' % count#插入 def Insert(cur...
分类:数据库   时间:2015-01-12 14:22:58    阅读次数:160
delete、update忘加where条件误操作恢复过程演示
update、delete没有带where条件,误操作,如何恢复呢?我现在有一张学生表,我要把小于60更新成不及格。 1 mysql> select * from student; 2 3 +----+------+-------+-------+ 4 5 | id | name | cla...
分类:其他好文   时间:2015-01-10 17:57:49    阅读次数:163
结构体以表格形式输出
#include#include#define n 3struct date{ int year; int month; int day;};struct student{ char num[6]; char name [10]; float score[3]; ...
分类:其他好文   时间:2015-01-10 17:54:39    阅读次数:161
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!