临床样本的蛋白组学结果可以用细胞或动物验证吗?比如差异蛋白建立的模型或者表达量
不知道你这个问题是否已经解决, 如果还没有解决的话:一般用带有头结点来建立链表,这样更简便一些
#include<cstdlib>
#include<cstdio>
#include<string.h>
typedef struct student//建立结构体
{
int n;
char name[100];//这里没有选择用string
//原因是scanf里的%s对string不兼容,好像是这样的......
int s;
struct student *next;
} stu;
using namespace std;
int main()
{
int x,y;
char a[100];
scanf("%d",&x);
stu* head = NULL;//定义头结点
head = new stu();
head->next =NULL;
stu *p =head;
while(x!=0)
{
scanf(" %s %d",a,&y);//没有用cin,而是选择scanf,对于整型和字符串的输入需要注意
stu *q = NULL;
q = new stu();
p->next = q;
q->n = x;
strcpy(q->name,a);//关于字符串函数的使用
q->s = y;
p = q;
scanf("%d",&x);
}
//以前因为判断是不是输入错误所以debug: printf("\nbull shit\n");
int line;
scanf("%d",&line);
p = head->next;
while(p!=NULL)
{
if(p->s>=line)
{
printf("%d %s %d\n",p->n,p->name,p->s);
p = p->next;
}
else
p = p->next;
}
p = head;
while(p!=NULL)//删除链表,防止超时
{
stu *q =p;
p = q->next;
free(q);
}
return 0;
}