有关ubuntu开机提示setting sensors limits failed

网上说:You'll have to apt-get install lm_sensors or apt-get install lm-sensors ( LM_SENSORS or LM-SENSORS all lower ) and run the detection script.But some boards have really cheapo or proprietary sensor chips on them that aren't supported.接下来是我电脑的设置情况:xuweihai@xuweihai-Compaq-510:~$ sudo sensors-de...
ubuntu | 2011-06-30 17:31 | 阅读 1517 次 | 评论 0 条

借助栈实现单链表逆置

#include <stdio.h>#include <string.h>#include <stdlib.h>#include <malloc.h>typedef struct node{ char name[10]; char number[15]; char sex[5]; char age[5]; char _class[5]; char health[10]; struct node *next; }link,*linkptr;typedef struct lin{ linkptr base; linkptr top; //linkptr last;}...

链表上的基本操作实现

#include<stdio.h>#include<string.h>#include<stdlib.h>typedef struct node{ int data; struct node *next; }link,*linkptr;void creatlink(linkptr &amp;la,int n){ linkptr q1,q2; int i; for(i=0;i<n;i++) { q1=(linkptr)malloc(sizeof(link)); if(!q1)printf("error"); ...

患者到医院看病事件模拟

#include<stdio.h>#include<stdlib.h>#include<string.h>#include<malloc.h>typedef struct node{char number[20];struct node *next;}node,*queueptr;typedef struct{queueptr front;queueptr rear;}linkque;void initque(linkque &amp;q){ q.front=q.rear=(queueptr)malloc(sizeof(node)); q.front->next=NU...

学生信息管理

#include <stdio.h>#include <stdlib.h>struct student{ char number[20]; char name[10]; float score1; float score2; float score3; float average; struct student *next;}node;typedef struct student jie;void view(jie *q,int num){ printf("%s %s %.2f %.2f %.2f %.2f %d\n",q->numbe...

括号匹配问题

标题: 括号匹配问题 时 限: 1000 ms 内存限制: 10000 K 总时限: 3000 ms 描述: 用顺序存储实现栈的初始化、入栈、出栈、取栈顶、判栈空操作。调用以上操作实现判断从键盘输入的括号序列是否匹配。 输入: 括号序列#(#为括号输入结束符号) 输出: 匹配或不匹配 输入样例: {[()]}# [{{}[(])}]# 输出样例: 匹配 不匹配 标题: 括号匹配问题 时 限: 1000 ms 内存限制: 10000 K 总时限: 3000 ...

约瑟夫环

#include <stdio.h>#include <stdlib.h>struct student{ char name[64]; char number[32]; char sex[16]; int age; char Class[64]; char health[64]; struct student *next;}node;typedef struct student jie;void view(jie *q1){ printf("%s ",q1->name); printf("%s ",q1->number); ...
默认分类 | 2011-06-15 13:09 | 阅读 840 次 | 评论 0 条

顺序表上的基本操作实现

标题: 顺序表上的基本操作实现 时 限: 1000 ms 内存限制: 10000 K 总时限: 1000 ms 描述: 在顺序存储结构实现基本操作:初始化、创建、插入、删除、查找、遍历、逆置、合并运算。 输入: 输入线性表La的长度:n输入线性表La中的元素:a1 a2 a3 ...an(数值有序,为降序)输入要插入到线性表La中的元素x和插入的位置i:x i输入要删除元素的位置:i输入要查找的元素:x输入线性表Lb的长度:m输入线性表Lb中的元素:b1 b2...bm(数值有序,为升序) 输出: 创建好的线性表La=...
默认分类 | 2011-06-15 13:06 | 阅读 1017 次 | 评论 0 条

n*n阶矩阵转置

#include <stdio.h>#include <stdlib.h>#define SIZE 3int** get_army(int **q);void change(int **p);void output(int **p);int main(){ int **p, **q,i; q=(int **)malloc(sizeof(int *)*SIZE);//分配行指针 for(i=0; i<SIZE; i++) q[i]=(int *)malloc(sizeof(int)*SIZE);//为每行分配内存 p=get_army(q); ...
默认分类 | 2011-06-13 23:21 | 阅读 1121 次 | 评论 0 条
浏览66695次