#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
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
importjava.util.Scanner;
classTestScore
{
publicstaticvoidmain(String[]args)
{
Scanners=newScanner(System.in);
System.out.println("请输入学生成绩:");
intscore=s.nextInt();
charlevel;
/*if(score>=90){
level=‘A‘;
}elseif(score>=70){
..
分类:
其他好文 时间:
2015-01-08 07:13:17
阅读次数:
143
}classTestSwitch5
{
publicstaticvoidmain(String[]args)
{
intscore=57;
if(score>=60){
System.out.println("及格");
}else{
System.out.println("不及格");
}
switch(score/10){
case10:
System.out.println("及格");
break;
cas..
分类:
其他好文 时间:
2015-01-07 19:06:04
阅读次数:
133
原先的邮件采用Content-Type: text/html下面是X-Spam的得分情况,当 score 超过6分就被当作垃圾邮件处理了X-Spam-Status: Yes, score=6.3 required=6.0 tests=CONTENT_TYPE_PRESENT, DIRECTUN...
分类:
Web程序 时间:
2015-01-06 19:40:22
阅读次数:
968
以下是eleasticsearch返回的json資料:{"took" : 12,"timed_out" : false,"_shards" : {"total" : 5,"successful" : 5,"failed" : 0},"hits" : {"total" : 8,"max_score" ...
分类:
Web程序 时间:
2015-01-06 17:31:11
阅读次数:
163
最近遇到了一个程序运行时间长后,操作系统由于out of memory 导致系统的oom-killer将程序直接杀死的问题:
错误提示大概为:
Out of memory: Kill process 20011 (main) score 58 or sacrifice child
Killed process 20011 (main) total-vm:21688384kB,...
分类:
系统相关 时间:
2015-01-05 15:05:26
阅读次数:
332
首先要讲下,为什么需要使用filter过滤 过滤并不会返回一个匹配度score,以至于它比查询要快很多 过滤查询后的结果能被缓存到内存中,并被多次重复使用. 1.如果我们要查询出account中blance从20000到30000之间的数据...
分类:
其他好文 时间:
2015-01-03 22:32:15
阅读次数:
346