搜索资源列表
Serial-interrupt-sent-and-received
- 串口收发均在后台中断中中完成 零等待的Printf串口打印函数将数据写入Buffer后立即返回-Serial transceiver are in the background of the complete interrupt The zero wait Printf serial print function will data writing immediately after the Buffer to return
4
- A C program for the operation of 5*5 matrix. 1.Function: to fill up all the element of this matrix with zero.2.Function: to fill up the upper right triangle with an integer given by user3.Function: to fill up the lower left triangle with an integer g
ORDER2-EQUATION
- #include<stdio.h> #include<conio.h> #include<math.h> main(){ float delta,a,b,c float x,x1,x2,z printf("enter a:") scanf(" f",&a) printf("enter b:") scanf(" f",&b) printf("enter c:") scanf(" f",&c) del
demo
- The program is a static buffer overflow vulnerability demo. modifying the normal execution flow of the program in such a manner that the instruction {printf(“X is 1”) } is skipped. it can be achieved in two different ways:
sd_test
- 该程序用于sd卡初始化的检测,因为有printf函数,必须有仿真器。用串口下载程序的伤不起。-The program for the initial testing sd card, because have printf function, must have the emulator. Download a program with a serial port of can t afford to injury.
C-Programming-Language-100-cases
- 文件包含100个C语言程序的例子,由易到难,可以帮助初学者提高学习效率。注:1、2、3、4个数字,有多少能形成一个不同于彼此,没有重复数字三位数吗?是多少? 1。这个程序分析:能填补一百年,十,比特数1、2、3、4。所有的安排后再删除不满足条件的安排。 2.程序源码为: main() { int i,j,k printf("\n") for(i=1 i<5 i++) for(j=1 j<5 j++) for (k=1 k<5 k++)
PwmTest
- 自己那GCC写的mega16舵机测试程序,调用printf函数。-GCC mega16 printf
taoqianzimulu
- linux下如果目录为空目录,则只有.和.这两个也是属于目录类型的本代码使用递归来判断目录及其子目录是否为空目录 /*判断目录是否为空目录*/int IsEmptyDir(char*pszDir){DIR*pstDirp=NULL;struct dirent*pstDirStru=NULL;int ulFileNum=0;int ret=1;char szDir[100];memset(szDir,0,100);pstDirp=opendir(pszDir);if(NULL==pstD
NStepSCAN
- NStepSCAN N步磁盘扫描调度算法C++程序-#include "stdafx.h" #include "stdlib.h" int L,P int a[20] int flag //访问位 typedef struct TASK { int requrie int io } TASK TASK T[50][50] TASK N[50] int diskway //当前磁道 void iod
MSP430-man-machine-dialogue
- 该程序示范用MSP430单片机串口作为标准终端输入/输出设备的范例。Windows自带有"超级终端"软件,运行后可以将PC机模拟成一个标准终端设备,其中PC机的屏幕变成字符型输出终端设备,PC机键盘变成标准字符输入设备。printf/scanf函数可以向标准字符终端设备打印/获取信息,因此,通过串口连接到PC机并运行超级终端软件后,可以将printf函数的结果打印在PC机屏幕上,也能从PC机键盘向单片机输入数据和信息。-The program demonstrates the MSP430 mi
ICE-program-printf-sample
- ice的一个小例子,可以实现两台电脑的通信,跨平台的C++网络编程ICE才是王道-A small ice example, can achieve the two computer communications, cross platform C network programming ICE is king
Example7
- 这个例子显示了如何重定向C库printf函数的USART。 在HyperTerminal使用USARTx本实施输出printf的消息。 USARTx可以是USART1的,USART2 USART3的选择要使用的USART接口 注释“#定义USE_USARTx的main.h 文件中的行。-This example shows how to retarget the C library printf function to the USART. This implementatio
arg_var
- 利用可变参数实现简单的printf函数 编写了两种实现方法, 1,用stdarg.h自带的va_start,va_arg等函数实现 2,根据可变参数的原理实现 主要是用于加深对可变参数的理解 vc6.0 测试通过-Variable parameters to achieve a simple printf function Prepared two ways to achieve 1, the stdarg.h comes the va_start, va_arg,
paixu
- 用指向指针的方法对n个数进行排序并输出,n和各整数在主函数中输入-#include <stdio.h> #define SIZE 100//数组最大长度 #define SWAP(x, y, t) (t = x, x = y, y = t)//交换两个数 void sort(int**p, int n){//排序函数 int i, j int min int temp for(i = 0 i < n- 1 i++){
02
- /* 十进制输出 */ printf("int_a = #o\n",int_a) /* 带标识符八进制输出 */ printf("int_a = #x\n",int_a) /* 带标识符十六进制输出 */ printf("char_e = c\n",char_e) /* 字符输出 */ printf("float_pi = f\n",float_pi) /* 实型输出 */ printf("double_g = 15.14g\n",double_pi) /* 15位
03
- /* 十进制输出 */ printf("int_a = #o\n",int_a) /* 带标识符八进制输出 */ printf("int_a = #x\n",int_a) /* 带标识符十六进制输出 */ printf("char_e = c\n",char_e) /* 字符输出 */ printf("float_pi = f\n",float_pi) /* 实型输出 */ printf("double_g = 15.14g\n",double_pi) /* 15位
hello
- 只是一个输出语句,尝试一下看能不能上传。-It s a printf.
simple_printf
- Simple implementation of printf function (not lib).this will reduce much of your code size, and maintain simple printf debugging features
srthrst
- 、代码片过长。一个函数代码过长。 2、常量到处是数字,(原则上,每个常量都有明确含义,既然有含义就应该用#define符号化。 3、printf用,scanf也用。输入输出不喜欢用文件,手工敲数据或把测试数据当静态常量数组方式存放在代码里。 4、没有测试函数 5、不知道如何区分C文件。要么一个main搞定。要么刻意给我增加N多C文件。 6、不知道简单的makefile的规则和使用。 7、代码总量小于500行,改改还能应付,超过2000行
number--and--space
- 用C语言编写一个程序,输入数字之后,要求输出格式为数字之间含有空格-printf number and space