最近学校开了PHP课程,顺便写了个作业,分享一下吧。。。都是很简单的东西,新手用得着、、、省略部分前端代码、、、首先是登录的校验:'; var_dump($_POST['search']); return ;*/ foreach ($_SESSION['student'] as $...
分类:
Web程序 时间:
2015-01-10 13:52:00
阅读次数:
257
#include#include#define LEN sizeof(struct Student)struct Student { long num; char name[20]; int age; float score; struct Student *next; };int n;struct...
分类:
其他好文 时间:
2015-01-10 12:27:33
阅读次数:
199
我们新建一个student类
1、声明文件-student.h
#import
@interface student : NSObject{
int _age;
}
- (int) getAge;
- (void)setAge:(int)age;
@end
@interface代表声明一个类,:NSObject代表继承自NSObject,成员变量应当定义在大
...
分类:
其他好文 时间:
2015-01-10 08:55:59
阅读次数:
136
http://www.cnblogs.com/ligongzi/archive/2012/08/24/2654448.html看了三天结构体,是时候总结一下了。 关于结构体的声明: struct Student{ char name[20]; char sex; int age...
分类:
其他好文 时间:
2015-01-09 17:13:38
阅读次数:
145
链表基本操作的实现 1 #include 2 #include 3 #define LEN sizeof(struct student) 4 5 /*----------------数据定义----------------------*/ 6 7 //定义一个学生信息的结构体...
分类:
其他好文 时间:
2015-01-09 17:03:12
阅读次数:
203
扩展方法对类的扩展有许多方法,如果有类的源代码,继承是给对象添加功能最好的方法。如果没有源代码,就可以使用扩展方法。public class Student{ public int age=10; public static class StudentExtention { ...
typedef struct { vector name; vector score; }Student; 有个问题,为啥声明为 Student *stu; 然后 stu->name.push_back(name);运行时会有问题,但是编译无问题~~ ; Student stu; stu.name....
分类:
其他好文 时间:
2015-01-08 12:56:25
阅读次数:
152
用一个结构封装学生信息: 1、思维1 struct Student_info { vector name; vector score; }; Student_info std; stu.name.push_back(name); stu.score.push_back(score); 2、思维2 s...
分类:
其他好文 时间:
2015-01-08 12:50:31
阅读次数:
202
function Student(name,age){
this.name=name;
this.age=age;
}
Student.hello="Hello World";
Student.prototype.sayHello=function(){
return this.name+"--"+this.age+"--"+Student.hello;
};...
分类:
Web程序 时间:
2015-01-07 22:14:09
阅读次数:
186
Student.xml UPDATE Student SET age=#age# WHERE (Id=#id#) StudentImpl.java public void upStudent(Student student) { // TODO Au...
分类:
其他好文 时间:
2015-01-07 18:40:31
阅读次数:
136