- 博客(7)
- 资源 (26)
- 收藏
- 关注
转载 巧妙使用do……while
int func(int n){ int i = 0; int ret = 0; int *p = (int *)malloc(sizeof(int) * n); do { if(NULL == p) break; if(n < 0) break; for (i = 0; i < n; ++i) { p[i] = i; printf("%d\n",p[i])
2012-10-29 20:52:22 1216
原创 altium designer如何只显示一层,隐藏其他层显示
方法一:在pcb文件视图下,按下字母L,弹出如下框,选择view options在single layer modes里面选择,hide other layers选项,就可以隐藏其他层显示了。单层显示效果如下图:方法二:shitf+s快捷键
2012-10-28 23:40:25 104210 5
原创 使用git下载linux的kernel源代码
输入:git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.gitgit pull升级
2012-10-23 12:14:22 9146
原创 顺序循环队列基本操作(入队,出队,清空,销毁,历遍)
#include #include #include #define MAXSIZE 5#define OVERFLOW -1#define OK 1#define TRUE 1#define FALSE 0#define ERROR 1typedef int QElemType;typedef int Status;str
2012-10-07 16:06:04 29504 4
原创 链式队列操作,初始化,入队,出队
#include #include #include #include #define OK 1#define OVERFLOW -1#define TRUE 1#define FALSE 0#define ERROR 0typedef int QElemType;typedef int Status;typedef struct
2012-10-02 14:18:18 17982
原创 编写一个strlen函数,不使用变量
#include #include int my_strlen(const char *strDest){ assert(NULL != strDest); return (('\0' != *strDest)? (1 + my_strlen(strDest+1)) : 0);}int main(){ char *p = "12345"; int length = 0;
2012-10-01 22:29:14 1202
原创 编写一个函数,检查当前系统是大端模式还是小端模式
#include int CheckSystem(){ union check { int i; char ch; }c; c.i = 1; return (c.ch == 1);}int main(){ int i; if (CheckSystem()) { printf("小端口模式\n"); } else { printf("大端口模式\n
2012-10-01 13:48:12 2827 1
cpdetector_1.0.10检测文本编码格式
2014-05-18
PCLINT9静态代码检测工具
2013-01-19
QuartusII创建工程编译下载源文件(例程)
2012-07-05
苹果电脑如何用u盘安装windows7系统
2012-07-01
FET430UIF仿真器固件降级
2012-06-22
UCOSII源代码
2012-04-11
TASM汇编编译工具
2012-04-11
开发工具Borland C 4.5完全安装版
2012-04-11
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人