在Windows系统中查看内存的使用情况很简单,想必大家都已经耳熟能详了,那么在linux系统如何查看内存使用情况呢?下面和大家分享在Linux
下查看内存使用情况的free命令: [root@scs-2 tmp]# free total used free shared buffers c...
分类:
系统相关 时间:
2014-05-26 09:04:17
阅读次数:
352
http://www.hcharts.cn/ Highcharts中文网tooltip: {
crosshairs: true, shared: true },加入此属性后,数据点提示框会将几个数据点全都显示出来,默认的话,数据点提示...
分类:
其他好文 时间:
2014-05-26 09:02:57
阅读次数:
247
质因数分解
/* 求质因数 */
#include
#include
int main()
{
int n,a=2;
printf("please input n:");
scanf("%d",&n);
if(n<=1)
{
printf("input error!\n");
return -1;
}
while(a*a < n)
{
while(n%a==0)
...
分类:
其他好文 时间:
2014-05-26 05:50:40
阅读次数:
279
#include
int main()
{
int a;
while(1)
{
printf("please input the number:\n");
scanf("%d",&a);
if(a&1)
{
printf("%d是奇数\n",a);
}
else
{
printf("%d是偶数\n",a);
}
}
return 0;
}这...
分类:
编程语言 时间:
2014-05-26 03:36:15
阅读次数:
367
http://acm.hdu.edu.cn/showproblem.php?pid=1071#include#includeint
main(){ //freopen("in.txt","r",stdin); int t; scanf("%d",&t); while(t--)...
分类:
其他好文 时间:
2014-05-26 02:14:56
阅读次数:
222
-----022-mysql.php ----- 1 2 3 4 5 MySQL 6 7 8
MySQL 9 10 mysql_fetch_row查询数据:", "\n";22 while(list($a, $b, $c) =
mysql_fetch_row($r...
分类:
数据库 时间:
2014-05-25 03:24:55
阅读次数:
281
只是实现了链表ADT的部分功能。
/*---编写打印出一个单链表的所有元素的程序---*/
#include
#include
struct Node{
int val;
struct Node *next;
};
Node *findEnd(Node *list){
while(list->next) list = list->next;
return list;
}
v...
分类:
其他好文 时间:
2014-05-24 22:30:37
阅读次数:
232
int cnt = 0;
while(1) {
++cnt;
ptr = (char *)malloc(1024*1024*128);
if(ptr == NULL) {
printf("%s\n", "is null");
break;
}
}
printf("%d\n", cnt);
这个程序会有怎样的输出呢?...
分类:
系统相关 时间:
2014-05-24 21:59:47
阅读次数:
479
/*---分别对单链表和双链表,只使用指针来交换两个相邻的元素。---*/
/*-单链表版本-*/
#include
#include
struct Node{
int val;
struct Node *next;
};
Node *findEnd(Node *list){
while(list->next) list = list->next;
return ...
分类:
其他好文 时间:
2014-05-24 19:41:49
阅读次数:
253
/*---给你一个链表L和另一个链表P,它们包含以升序排列的整数。操作PrintLots(L,P)
将打印L中那些由P所指定位置上的元素。---*/
#include
#include
struct Node{
int val;
struct Node *next;
};
Node *findEnd(Node *list){
while(list->next) list = l...
分类:
其他好文 时间:
2014-05-24 14:27:42
阅读次数:
224