Chinaunix首页 | 论坛 | 博客
  • 博客访问: 387732
  • 博文数量: 199
  • 博客积分: 154
  • 博客等级: 入伍新兵
  • 技术积分: 1530
  • 用 户 组: 普通用户
  • 注册时间: 2011-03-14 08:43
文章分类

全部博文(199)

文章存档

2015年(101)

2014年(97)

2011年(1)

发布时间:2015-04-29 14:47:32

http://www.cnblogs.com/liangshi/archive/2010/12/26/1917229.html......【阅读全文】

阅读(1174) | 评论(0) | 转发(0)

发布时间:2015-04-28 09:33:30

http://blog.csdn.net/zhufengtianya/article/category/2707603......【阅读全文】

阅读(1243) | 评论(2) | 转发(0)

发布时间:2015-04-25 09:48:32

Source Insight常用的快捷键:    Ctrl+= :Jump to definition    Alt+/ :Look up reference    F3 : search backward    F4 : search forward    F5: go to Line    F7 :Look up symbols    F8 :Look up local symbols    F9 :I.........【阅读全文】

阅读(1525) | 评论(3) | 转发(0)

发布时间:2015-04-23 23:18:27

#!/bin/bash#CPU监控CPULoad(){cpu_idle=`top -b -n 1 | grep Cpu | awk '{print $4}' | cut -f 2 -d "," | awk -F% '{print $1}' | cut -f 1 -d "."`if [ $cpu_idle -lt 20 ]    then        echo "CPU负载过高,请处理,当前剩余$cpu_idle%" >> /home/log      &nbs.........【阅读全文】

阅读(1135) | 评论(0) | 转发(0)

发布时间:2015-04-23 23:17:02

CPU信息/proc/cpuinfo文件包含了你的系统处理器单元的信息。例如,这里就是python版的linux命令cat /proc/cpuinfo所做的事:#! /usr/bin/env python""" print out the /proc/cpuinfo    file"""from __future__ import print_functionwith open('/proc/cpuinfo') as f:    for line in f:&nbs.........【阅读全文】

阅读(1227) | 评论(0) | 转发(0)

发布时间:2015-04-20 20:38:23

void shellsort(int k[],int n){    int i, j, flag ,gap = n;    int tmp;    while(gap > 1){    gap = gap/2;                /*增量减半*/    do{                   .........【阅读全文】

阅读(1353) | 评论(0) | 转发(0)

发布时间:2015-04-16 19:54:21

实现{2,5,6,3,7,8,0,9,12,1}冒泡,从大到小。void bubblesort(int k[],int n){                    /*冒泡*/    int i,j,tmp ,flag = 1;    for(i=1;i......【阅读全文】

阅读(1305) | 评论(0) | 转发(0)

发布时间:2015-04-16 09:16:03

从大到小......【阅读全文】

阅读(953) | 评论(1) | 转发(0)

发布时间:2015-04-14 20:40:20

insertsort(int a[],int n)                        /*直接插入*/{    int i,j;    for(i=2;i......【阅读全文】

阅读(903) | 评论(1) | 转发(0)

发布时间:2015-04-08 17:28:43

bin_search(int A[],int n,int key){int low,high,mid;low = 0;high = n-1;while(low......【阅读全文】

阅读(926) | 评论(0) | 转发(0)

发布时间:2015-04-07 20:24:08

typedef struct student{int id;                    /*学生编号*/char name[10];      /*姓名*/float score;            /*成绩*/}Student;int search(Student stu[],int n,int key){int i;for(i=0;i......【阅读全文】

阅读(1046) | 评论(1) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册