虫虫首页| 资源下载| 资源专辑| 精品软件
登录| 注册

STDIO

  • 我们一个小组

    我们一个小组,课程大作业中做的简单的输入法,有记忆功能。支持双拼。开发环境visual STDIO 2005

    标签:

    上传时间: 2015-11-11

    上传用户:gxmm

  • [输入] 图的顶点个数N

    [输入] 图的顶点个数N,图中顶点之间的关系及起点A和终点B [输出] 若A到B无路径,则输出“There is no path” 否则输出A到B路径上个顶点 [存储结构] 图采用邻接矩阵的方式存储。 [算法的基本思想] 采用广度优先搜索的方法,从顶点A开始,依次访问与A邻接的顶点VA1,VA2,...,VAK, 访问遍之后,若没有访问B,则继续访问与VA1邻接的顶点VA11,VA12,...,VA1M,再访问与VA2邻接顶点...,如此下去,直至找到B,最先到达B点的路径,一定是边数最少的路径。实现时采用队列记录被访问过的顶点。每次访问与队头顶点相邻接的顶点,然后将队头顶点从队列中删去。若队空,则说明到不存在通路。在访问顶点过程中,每次把当前顶点的序号作为与其邻接的未访问的顶点的前驱顶点记录下来,以便输出时回溯。 #include<STDIO.h> int number //队列类型 typedef struct{ int q[20]

    标签: 输入

    上传时间: 2015-11-16

    上传用户:ma1301115706

  • 1.[问题描述] 编写递归算法

    1.[问题描述] 编写递归算法,计算二叉树中叶子结点的数目 [输入] 按照先序序列的顺序输入该结点的内容。其输入abd eh cf i g . [输出] 按中序序列输出,输出的结果为;dbheaficg并计算出二叉树中叶子结点的数目为4 [存储结构] 采用二叉表存储 [算法的基本思想] 采用递归方法建立和遍历二叉树。首先建立二叉树的根结点,然后建立其左右子树,直到空子树为止,中序遍历二叉树时,先遍厉左子树,后遍厉右子树,最后访问根结点。根据左右子树的最后一个结点计算出二叉树中叶子结点的数目。 程序如下: #include<STDIO.h> #include<malloc.h> #include"stdlib.h"

    标签: 编写 算法 递归

    上传时间: 2015-11-16

    上传用户:GavinNeko

  • 2.[问题描述] 编写递归算法

    2.[问题描述] 编写递归算法,在二叉树中求位于先序序列中第K个位置的结点 [输入] 按照先序序列的顺序输入该结点的内容。其输入abd eh cf i g 。输入要求的位置 [输出] 若二叉树不空,按先序序列输出,求出所求位置的结点 [存储结构] 采用二叉表存储 [算法的基本思想] 采用递归方法建立和遍历二叉树。首先建立二叉树的根结点,然后建立其左右子树,直到空子树为止,先序遍历二叉树时,先遍厉左子树,后遍厉右子树,最后访问根结点并计算出二叉树中叶子结点的数目和第K个位置的结点 #include<STDIO.h> #include<malloc.h> struct node{ char info struct node*llink,*rlink } typedef struct node NODE

    标签: 编写 算法 递归

    上传时间: 2014-01-13

    上传用户:zm7516678

  • [问题描述] 在二叉排序树中查找关键字为KEY的记录 [输入] 有序表输入要查找元素的关键字 [输出] 查找成功是即可显示查找成功 #include <stdlib.h> #

    [问题描述] 在二叉排序树中查找关键字为KEY的记录 [输入] 有序表输入要查找元素的关键字 [输出] 查找成功是即可显示查找成功 #include <stdlib.h> #include <STDIO.h> typedef int KeyType typedef struct{

    标签: include stdlib KEY 输入

    上传时间: 2015-11-16

    上传用户:erkuizhang

  • 学会对文件的记录锁定

    学会对文件的记录锁定,及解锁。#include <STDIO.h> #include <unistd.h> #include <fcntl.h> int main() { int fd int i struct { char name[20] uint ID int age } myrec fd =open("name", O_RDWR|O_CREAT, 0755) if (fd == -1) return -1 printf("Input your name:") scanf("%s", myrec.name) printf("Inpute your ID :") scanf("%d", &myrec.ID) printf("Input your age :") scanf("%d", &myrec.age) lseek(fd, 0,SEEK_END) lockf(fd, 1, 0) write(fd, (void *)&myrec, sizeof(myrec)) lockf(fd, 0 ,0) return 0 } 执行命令cc lock.c –o lock.out Chmod +x lock.out ./lock.out

    标签: 记录

    上传时间: 2016-01-04

    上传用户:亚亚娟娟123

  • matlab中用C语言编写sfunction, 实现读取文件中的数据

    matlab中用C语言编写sfunction, 实现读取文件中的数据,应用库"STDIO.h"

    标签: sfunction matlab C语言 编写

    上传时间: 2014-01-21

    上传用户:小码农lz

  • The Tremor Vorbis I stream and file decoder provides an embeddable, integer-only library [libvorbisi

    The Tremor Vorbis I stream and file decoder provides an embeddable, integer-only library [libvorbisidec] intended for decoding all current and future Vorbis I compliant streams. The Tremor libvorbisidec library exposes an API intended to be as similar as possible to the familiar vorbisfile library included with the open source Vorbis reference libraries distributed for free by Xiph.org. Tremor can be used along with any ANSI compliant STDIO implementation for file/stream access, or use custom stream i/o routines provided by the embedded environment. Both uses are described in detail in this documentation.

    标签: integer-only embeddable libvorbisi provides

    上传时间: 2013-12-25

    上传用户:lindor

  • The Tremor Vorbis I stream and file decoder provides an embeddable, integer-only library [libvorbisi

    The Tremor Vorbis I stream and file decoder provides an embeddable, integer-only library [libvorbisidec] intended for decoding all current and future Vorbis I compliant streams. The Tremor libvorbisidec library exposes an API intended to be as similar as possible to the familiar vorbisfile library included with the open source Vorbis reference libraries distributed for free by Xiph.org. ogg vorbis decoder, evc project Tremor can be used along with any ANSI compliant STDIO implementation for file/stream access, or use custom stream i/o routines provided by the embedded environment. Both uses are described in detail in this documentation.

    标签: integer-only embeddable libvorbisi provides

    上传时间: 2016-01-21

    上传用户:gengxiaochao

  • 实验源码是2410完全开发用的

    实验源码是2410完全开发用的,通过此源码实验初学者可以一步步步入arm开发的殿堂。 源码包括:led点亮、key、STDIO操作以及nand和sdram操作控制等。

    标签: 2410 实验 源码

    上传时间: 2016-02-14

    上传用户:1051290259