搜索结果

找到约 126 项符合 printf 的查询结果

其他 学会对文件的记录锁定

学会对文件的记录锁定,及解锁。#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) ...
https://www.eeworm.com/dl/534/242419.html
下载: 95
查看: 1123

技术资料 使用MDK5建立的STM32F10单片机工程模板

使用MDK5建立的STM32F10单片机工程模板,已经实现了在不使用MicroLIB库的前提下重定向printf和scanf函数到USART,可直接使用串口助手调试
https://www.eeworm.com/dl/860592.html
下载: 5
查看: 6088

源码 二叉树子系统

#include<stdio.h> #define TREEMAX 100 typedef struct  BT { char data; BT *lchild; BT *rchild; }BT; BT *CreateTree(); void Preorder(BT *T); void Postorder(BT *T); void Inorder(BT *T); void Leafnum(BT *T); void Nodenum(BT *T); int TreeDepth(BT *T); int count=0; void main() { BT *T=NULL; char ...
https://www.eeworm.com/dl/522520.html
查看: 139

技术资料 stm32串口通讯历程

本文件实现串口发送功能(通过重构putchar函数,调用printf;或者USART_SendData() * 这里是一个用串口实现大量数据传输的例子,使用了DMA模块进行内存到USART的传输
https://www.eeworm.com/dl/973548.html
下载: 2
查看: 1627

源码 数组子系统

#include <stdio.h> #include <stdlib.h> #define SMAX 100 typedef struct SPNode { int i,j,v; }SPNode; struct sparmatrix { int rows,cols,terms; SPNode data [SMAX]; }; sparmatrix CreateSparmatrix() { sparmatrix A; printf("\n\t\t请输入稀疏矩阵的行数,列数和非零元素个数(用逗号隔开):"); scanf("%d, ...
https://www.eeworm.com/dl/522521.html
下载: 1
查看: 106

嵌入式/单片机编程 "printpp"是帮助用户调试的一个工具

"printpp"是帮助用户调试的一个工具,它相当于C提供的printf函数,但它的输出设备是串口。提供的codeworrior编程范例,旨在通过给出的范例使用户对codeworrior的使用有所了解。
https://www.eeworm.com/dl/647/130085.html
下载: 195
查看: 1056

VC书籍 详细介绍了C语言库函数sprintf的用法

详细介绍了C语言库函数sprintf的用法,以及他和printf的区别。sprintf提供了强大的格式功能,将结果输出到一个字符串中,对C语言开发人员很有用。
https://www.eeworm.com/dl/686/297056.html
下载: 133
查看: 1116

Linux/Unix编程 //获得当前的模式 oldmode = vga_getcurrentmode[] //初始化 vga_init[] //判断是否支持该模式 if[vga_ha

//获得当前的模式 oldmode = vga_getcurrentmode[] //初始化 vga_init[] //判断是否支持该模式 if[vga_hasmode[mode]] vga_setmode[mode] else { printf["No such mode\n"] exit[1] } //获得当前的模式 mode = vga_getcurrentmode[] info = vga_getmodeinfo[mode] ...
https://www.eeworm.com/dl/619/418769.html
下载: 68
查看: 1086

单片机开发 S3C2410开发实验源代码及实验指导;内容包括: LED_ON LED_ON_C IO_ports arm-linux-ld memory_controller Nand Flash contro

S3C2410开发实验源代码及实验指导;内容包括: LED_ON LED_ON_C IO_ports arm-linux-ld memory_controller Nand Flash controller uart printf,scanf interrupt controller timer mmu clock vivi等; 主要讲述了单片机s3c2410的使用。
https://www.eeworm.com/dl/648/319545.html
下载: 134
查看: 1083

单片机开发 UART I/O and Memory Allocation Example for GNU The project GNU_IODemo shows how to use memory alloc

UART I/O and Memory Allocation Example for GNU The project GNU_IODemo shows how to use memory allocation routines (malloc) and char I/O (printf, scanf) via a serial interface with the GNU toolchain. The I/O functions are adapted for the Analog Devices ADuC7000 series using the SERIAL.C module. The ...
https://www.eeworm.com/dl/648/148543.html
下载: 61
查看: 1130