一、#pragma mark NSObject常用方法调用。void objUse() { Student *stu = [[[Student alloc] init ] autorelease]; //isKindOfClass判断对象是否属于某个类或者子类。 if (...
分类:
其他好文 时间:
2014-12-30 16:42:15
阅读次数:
121
#pragma mark 可变字典的使用。void dictUse() { NSMutableDictionary *dict = [NSMutableDictionary dictionary]; Student *stu = [Student studentWithName:@"stu"];.....
分类:
其他好文 时间:
2014-12-29 20:02:54
阅读次数:
135
create proc ppas declare @n intset @n=1while @n<=100begininsert into student values('11341101320'+LTRIM(@n),'Jack'+ltrim(@n),'男',22,'上海','18272986984....
分类:
其他好文 时间:
2014-12-29 16:42:25
阅读次数:
126
从输出结果来看,这个程序是错的。完全不知道什么意思。Exercise 5-5. Write a program that will calculate the average grade for the students ineach of an arbitrary number of classe...
分类:
其他好文 时间:
2014-12-28 19:28:10
阅读次数:
164
第五章 数据的简单查询1:投影操作 select 列名列表 from 表名; 如果我们选择某个表中的多个列,那么列名之间用逗号分隔开;如果是单个列,只需要列出该列的列名即可;如果选择所有的列,可以简单地用“*”号带代替列名列表。2.表前缀select student.name from stud.....
分类:
数据库 时间:
2014-12-28 10:26:47
阅读次数:
134
1.结构体数组
结构体数组中的每个元素是都是一个结构体变量。
结构体数组的定义有三中方法:
第一种方法:
struct student
{
int num;
char name[20];
char sex;
int age;
};
struct student stu[2...
分类:
编程语言 时间:
2014-12-26 23:06:16
阅读次数:
335
1.结构体和指针
指向结构体变量的指针
定义形式:struct 结构体名 *结构体指针名;
例如:struct student *p;
struct student
{
int num;
char name[20];
char sex;
int a...
分类:
编程语言 时间:
2014-12-26 21:42:55
阅读次数:
168
Student(S#,Sname,Sage,Ssex) 学生表S#:学号;Sname:学生姓名;Sage:学生年龄;Ssex:学生性别Course(C#,Cname,T#) 课程表 C#,课程编号;Cname:课程名字;T#:教师编号SC(S#,C#,score) 成绩表 ...
分类:
数据库 时间:
2014-12-26 16:10:22
阅读次数:
173
SQL、LINQ、Lambda 三种用法颜色注释: SQL LinqToSql Lambda QA1、 查询Student表中的所有记录的Sname、Ssex和Class列。select sname,ssex,class from studentLinq: from s in Students...
分类:
数据库 时间:
2014-12-26 14:29:02
阅读次数:
149
GPA
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 1861 Accepted Submission(s): 1121
Problem Description
In college, a student may ...
分类:
其他好文 时间:
2014-12-26 11:11:43
阅读次数:
149