- 博客(10)
- 资源 (2)
- 收藏
- 关注
原创 程序的编译链接与执行--IAR
IAR是很多嵌入式平台的编译链接与下载工具,为编程人员提供了极大的方便。下面我将以它为例来详细解说。一般程序下载进入相应的硬件平台需要以下三个阶段:程序的编译、程序的链接、程序的运行。1.1 程序的编译阶段编译,首先由编译器和汇编器,生成可重定向的目标文件,或也可以进而生成相应的库文件如下图所示。而对于生成相应的库文件,这里可以生成相应的静态库与动态库:对于静态
2014-12-01 17:46:04 1544
原创 第十四章 字符串
1.1 整数字符串转化例题1 整数转化为字符串#include int main() {int num = 65535;char str[7] = {0};char temp[7] = {0};int i = 0, j = 0;while(num) {temp[i] = num%10 + '0';i++;num = num/10;}tem
2014-12-01 11:05:18 407
原创 第十三章 数据结构基础--栈
1.1 入栈入栈:#include typedef struct student {int age;struct student *next;}Stu;typedef struct stackqueue {Stu *base, *top;}stack;stack *PushStack(stack *head, int age) {Stu *c
2014-11-26 15:16:48 333
原创 第十三章 数据结构基础--队列
1.1 入队入队:从队列的尾部加入结点。#include typedef struct student {int age;struct student *next;}Stu;typedef struct linkqueue {Stu *front, *rear;}queue;queue *EnQueue(queue *head, int
2014-11-26 14:50:37 300
原创 第十三章 数据结构基础--单链表
1.1 单链表的创建尾部加入法创建单链表:头节点、尾节点、中间节点;头节点与尾节点的初始化。 #include typedef struct student {int age;struct student *next;}Stu;Stu *SingleListTailCreate() {Stu *head = NULL, *tail = NULL,
2014-11-26 11:27:22 362
原创 第十二章 位运算与嵌入式编程
1.1 位制转换例题1int main() {printf("%f\n", 5);printf("%d\n", 5.01);return 0;}
2014-11-25 11:31:54 453
原创 第六章 预处理、const、sizeof
1.1 宏定义例题1typedef struct student {int a;char b[20];double c;}Stu;#define FIND(Stu, b) ((unsigned int)&(((Stu*)0)->b))
2014-11-17 10:42:47 484
原创 第五章--基本概念
#include "stdafx.h"//p29//int i = 1;//int main() {// int i = i; //execute error: not initialized.// return 0;//}
2014-11-15 09:25:27 359
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人