1 #include 2 #include 3 #include 4 5 using namespace std; 6 7 //Student类 8 class Student 9 { 10 private://私有 11 char name[1...
分类:
编程语言 时间:
2014-07-10 13:22:54
阅读次数:
276
#include#include/*定义学生结构体*/struct Student{ char ID[20]; char Name[20]; float Mark1; float Mark2; float Mark3; float Avarage;};/*声明学生...
分类:
编程语言 时间:
2014-07-10 12:16:39
阅读次数:
298
#include #includeusing namespace std;class Student//声明基类{public://公用部分 Student(int n, string nam)//基类构造函数 { num=n; name=nam; } void ...
分类:
其他好文 时间:
2014-07-10 11:23:39
阅读次数:
193
In the 1960s, the legendaryStanford artificial intelligence pioneer, John McCarthy, famously gave agraduate student the job of “solving” computer visi...
分类:
其他好文 时间:
2014-07-10 00:59:27
阅读次数:
249
// 产生连接字符串 string connString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=student.xls;" + "Extended Properties=...
分类:
其他好文 时间:
2014-07-07 23:50:13
阅读次数:
228
private string fileName = HttpContext.Current.Server.MapPath("~/Student.xml"); protected void Page_Load(object sender, EventArgs e) { if (!I...
分类:
其他好文 时间:
2014-07-07 23:30:32
阅读次数:
260
上篇博客主要介绍了一对一的关系,主要理解单向与双向的区别,主键关联与唯一外键关联的区别。下面继续介绍一对多与多对多关联。
一对多关联映射
一个班级对应多个学生
单向一对多关系
关系表:
classes代码
student代码
由班级维护关系,所以要...
分类:
系统相关 时间:
2014-06-28 07:27:17
阅读次数:
414
PalindromeTime Limit:15000MSMemory Limit:65536KTotal Submissions:3695Accepted:1338DescriptionAndy the smart computer science student was attending an ...
分类:
其他好文 时间:
2014-06-27 13:46:53
阅读次数:
296
#include #include using namespace std;class Student{public: Student (char *name); ~Student();public: char name[30]; Student *next; stat...
分类:
编程语言 时间:
2014-06-27 11:03:00
阅读次数:
199
至于Guava这个这里就不多说了,上一篇已经讲得很详细了!这次主要是分享一下Guava对集合的一些升华处理,好啦,不多说,直接上代码:package com.joyce.guava.bean;
/**
* 学生实体类
*
* @author Joyce.Luo
* @date 2014-6-19 下午02:37:19
*/
public class Student {
/**
...
分类:
其他好文 时间:
2014-06-27 08:19:03
阅读次数:
188