自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(5)
  • 资源 (1)
  • 收藏
  • 关注

原创 关于字符串

#include<iostream> //不用库函数实现strstr(const char* _src,const char* _dst) char* myStrstr(const char* _src,const char* _dst) { if(!_src||!_dst) return NULL; char* src=(char*)_src; char*

2016-10-22 19:01:39 180

原创 玩转CPU占用率曲线

我们通过空循环来控制CPU占有资源的占有资源,振幅越大,即时间越长,CPU占有资源越多。再通过Sleep( )函数来控制CPU空闲时间。我们通过控制空循环时间与Sleep时间的比例来控制一段曲线CPU busy的时间越多,则idle的时间越少,则此时曲线就会越陡,因为 idle的时间少,休息一会儿,CPU又要接着busy了。那么这个时间怎么控制才能使CPU占有率为正弦曲线呢?前面我们说到busy时

2016-10-14 19:20:54 1339

原创 二叉树的实现

#include<stdio.h> #include<stdlib.h>#define TRUE 1 #define FALSE 0 #define OK 1 #define ERROR 0typedef int Elemtype; typedef int Status;typedef struct _Tree { Elemtype data; struct _Tree* Lchil

2016-10-04 10:54:32 181

原创 队列(链式结构)的实现

#include<iostream>using namespace std;#define TRUE 1 #define FALSE 0 #define OK 1 #define ERROR 0typedef int Elemtype; typedef int Status;/*队列结点的结构体*/ typedef struct _QNode { Elemtype data; str

2016-10-02 00:39:22 342

原创 栈的实现(顺序结构&&链式结构)

#include<iostream> #include<stdio.h> #include<stdlib.h>using namespace std;#define OK 1 #define ERROR 0 #define TRUE 1 #define FALSE 0 #define INIT_SIZE 10 #define SIZE_INCREASEMENT 10typedef int Elemt

2016-10-01 13:03:30 390

NXP_LPC54100

NXP_LPC54100

2017-02-23

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除