搜索资源列表
人工智能
- printf("题目:设有n个传教士和m个野人来到河边,打算乘一只船从右岸到左岸去。\n"); printf("该船的负载能力为两人。在任何时候,如果野人人数超过传教士人数,野人\n"); printf("就会把传教士吃掉。他们怎样才能用这条船安全的把所有人都渡过河去?\n"); printf("\n默认的n、m值皆为3\n");
usart_printf
- stm32f103vct6的串口打印功能程序
zuijiasuanfa
- #include #include #define M 20 #define N 3 int mm[M]={0,0,0,2,3,1,0,4,2,3,2,1,0,3,2,2,1,3,0,1}; int nn[N]; int number; void Xunhuan(void); void FIFO(void); void Best(void); void LRU(void); int main() { char ss[1]; int i,j, *p=nn; int c, k=0; for(i=0;
白噪声随机数的产生
- #include<stdio.h> #include<stdlib.h> #include<math.h> #define E 6 #define D 1 double N() { double n=0;int i; for(i=0;i<12;i++) n+=(double)rand()/RAND_MAX; n=(n-E)/sqrt(D); return n; } void main() {
caculator
- // caculator.cpp : Defines the entry point for the console application. // #include #include #include #include #include char e; int main(int argc, char *argv[]) { do { float a,c,d; char b; printf("input first number\n"); scanf("%f"
迷宫求解的非递归算法
- #include #include #include #define N 20 int aa[N][N]; int yes=0; int x[100][2],n=0; void fun1(int (*aa)[N],int (*a)[N]); int fun(int (*a)[N],int i,int j); void begain(int (*t)[N]); void pr(int (*t)[N],int nn); void win(int (*t)[N]); void lose(); void
移植uip-1.0到Atmega32
- 移植uip-1.0到Atmega32 1)把 uip-1.0 的所有文件加入到工程,包括 uip 目录的文件(除uip-split.c)、unix 目录的文件、lib 目录的文件; 2)修改 uip/uip-neighbor.c 文件的 void uip_neighbor_add(uip_ipaddr_t ipaddr, struct uip_neighbor_addr *addr) 函数,一般注释掉 printf 语句即可,或者改为你自己的串口格式化打印实现。 3)u
OutputPrint.rar
- 改造了一下OutputDebugString函数,使其用起来就像printf函数一样实现格式化字符串输出,OutputDebugString function, then transform it to use to achieve the same function as printf format string output
log.rar
- 在Unix/Linux下C++编程,写日志文件是重要的调试手段。提供一个写log的类,用起来很方便。如log.logwrite("hello, s\n", somestring) 与printf函数一样的参数用法。,class of log to file, for C++ under Unix/Linux.
single_file_source
- DispHelper允许您调用一个非常简单的printf风格的语法的COM对象。 DispHelper可用于从C + +或即使是普通的C,它与大多数Windows编译器 包括DEV - CPP的Visual C+ +和LCC- WIN32。包括在您的项目DispHelper 不能简单,因为它是在压缩单个文件的版本。-DispHelper allows you to call COM objects with an extremely simple printf style synta
MC9S12DG128
- 本文件夹是为用户提供的codeworrior编程范例,旨在通过给出的范例使用户对codeworrior的使用有所了解。 其中: "LED"是用定时器模块写的一个跑马灯。 "printpp"是帮助用户调试的一个工具,它相当于C提供的printf函数,但它的输出设备是串口。 -This folder is to provide users with codeworrior programming paradigm, designed to enable use
printf_transplant
- 改程序是以MSP430为例把printf函数移植到硬件平台的一个实例,-The program is as an example the printf function MSP430 transplanted to the hardware platform, an example
capture.rar
- //结构 struct fb_fix_screeninfo finfo struct fb_var_screeninfo vinfo //打开设备 fd = open["/dev/fb0", O_RDWR] if [!fd] { printf["Cannot open framebuffer device.\n"] exit[1] } //取得固定信息 if [ioctl[fd, FBIOGET_FSCREENIN
SkyFont1.0
- SkyFont1.0 2D游戏引擎HGE的显示中文字体解决方案。使用freetype生成字模,并自带小型字模缓存系统; 目前只实现了一些基本的功能。 如渲染一个字符串,printf,和setcolor -SkyFont1.0 2D game engine HGE display Chinese font solutions. Use freetype to generate the matrix, and comes with a small font caching system
FontTest
- 在iPhone上测试iOS字体;主要是通过UIFont类来获得当前iPhone系统的字体。 NSArray *familyNames = [UIFont familyNames] for( NSString *familyName in familyNames ){ //printf( "Family: s \n", [familyName UTF8String] ) NSArray *fontNames = [UIFont fontNamesForFamilyNam
ctemplate-0.96
- c++模板系统,用过printf()的人都知道是在格式话,输出。 谷歌的这个模板可以更自由的输入任何变量。 里面有大量的例子。这是目前最新板0.96 -Google C++ template system! As a quick start, here s a small but complete program that uses this template library. For more details see, the links below.
LCD_Blinky
- LPC1768 单片机 arm m3程序 里面包括ad采集和lcd显示 在路虎开发板上运行 里面包括字库查询 adc中值滤波 自写printf 函数。本人多年开发经验下来的程序代码。很有参考价值-LPC1768 microcontroller arm m3 program which includes acquisition and lcd display ad in the Land Rover which includes character development board runnin
UART0
- lpc2103通过uart0发送helloworld到PC,keil下编译通过的工程,含有proteus仿真-lpc2103 by uart0 helloworld sent to the PC, keil compiled by the project, with proteus simulation
stm32p2Bgpsp2B1602
- STM32通过串口接收GPS信号,并且在显示屏上输出GPS信息-use UART to receive GPS information with STM32 board,printf GPS information on tft screen.
amo_tool_V1_2_6
- 名称:amo的编程小工具集合版本:V1.2.6 我平时编程和设计时常用的小工具集合。功能: 1-8位校验和 2-16位校验和 3-计算CRC8 4-计算CRC16 5-计算CRC32 6-计算MD5 7-计算SHA1 8-十六进制字符串转换为Ascii字符串 9-Ascii字符串转换为十六进制字符串 10-十六进制字符串转换为浮点数 11-浮点数转换为十六进制字符串 12-统计文章的字符个数,精确到每一个字符 13-把文件转换为C语言数组(这样可以把文件嵌入到我们的程序中) 14-电阻值选型(开