搜索资源列表
tony
- 河內塔問題 #include<stdio.h> #include<stdlib.h> int fun_a(int) void fun_b(int,int,int,int) int main(void) { int n int option printf("題目二:河內塔問題\n") printf("請輸入要搬移的圓盤數目\n") scanf("%d",&n) printf("最少搬移的次數為%d
tony
- 指定一個數字轉換回十進位,八進位,十六進位#include <stdio.h> #include <stdlib.h> int main(void) { int number =89 printf("數字 %d\n",number) /* %d 為十進位輸出格式*/ printf("八進位為 %o\n",number) /* %o 為八進位輸出格式*/ printf("十六進位為%x\n",number) /* %x 為
PrintItself
- 利用printf打印代码文件本身内容的趣味编程例子。-Use printf to print the contents of the code document itself interesting programming examples.
thread.dat
- int main(int argc,char *argv[]) { char ch while(true) { printf("*************************************\n") printf(" 1.Reader Priority\n") printf(" 2.Writer Priority\n") printf(" 3.Exit to Windows\n") printf("*******
Hanoi
- 一个Hanoi的小游戏 void Hanoi(int n, char x,char y,char z) { if (n==1) { printf("%c %d %c\n",x,n,z) return } Hanoi(n-1,x,z,y) printf("%c %d %c\n",x,n,z) Hanoi(n-1,y,x,z) }-Hanoi in a game void Hanoi (int n, char x, char
shunxu
- //顺序表的建立、查找、插入与删除 #include <stdio.h> #include <malloc.h> #include <stdlib.h> #define ListSize 100 //表最大长度 //结构定义 typedef struct SeqList { int node[ListSize] //存放表结点 int length //当前表长度 } SeqList //插入元素
codewarrior_example
- 本文件夹是为用户提供的codeworrior编程范例,旨在通过给出的范例使用户对odeworrior的使用有所了解。 其中: "CAN0 CAN4 C"是CAN0和CAN4通讯的程序。用户可参照此例程设置MSCAN模块。 "LED"是《开发套件使用文档》中创建的codewarrior工程。 "Port ucosii V252"是嵌入式操作系统uC/OS-II在DP256/DG128上移植的范例。 "printpp"是帮助用户调试的一个工具,它相当于C提供的printf函数,但
qishi
- void Knight(int i , int j) { // printf("%d %dn",i,j) if (board[i][j] != 0 || i < 0 || i >= Size || j < 0 || j >= Size ) { return } step++ board[i][j]=step if (step == Size*Size) { showboard() system("PAUSE
51uart
- 串口调试程序 1. 发送过程:在发送时必须保证TI=1:即发送缓冲器为空,否则将导致数据发不出去,如果想强制发送可以用:TI=1.具体发送数据:利用printf(“akjdfaklfj”) 函数直接发送即可。 2. 接收过程:在接收时多选用中断方式,这样可以节约CPU的时间,提高效率, -1 serial port debugger. Send process: to be sent to ensure that TI = 1: that is, send buffer is
OCM240128DriverAPI
- 液晶 OCM/TG240128 驱动 编程语言: C 原产品硬件ATMega128/1280 ,晶振14.7456M 软件AVR ICC7.14C 破解版 由产品源码中提取,详细的字符和图行操作.实现LCD内任何位置的定位操作. void LCD_Init(void) void GMoveTo(U8 yline, U8 xcolumn) void TMoveTo(U8 y, U8 x,U8 len) void DispStartLine
1223
- C语言实现病毒源码 当含有病毒部分的程序被执行时,首先进入病毒程序。它在磁盘上找扩展名为C的匹配文件,如果找到,查找是否有被传染过的标志“INFECTED”。如果有此标志,继续找其它的C文件,直至全部检查一遍。若没有这个标志,则 (1)在未被感染的C程序头部加入“INFECTED”已被传染标志。 (2)读取病毒文件的头文件,将其插入到即将被感染的文件头部。如果发现有重复则不插入。 (3)在主程序中插入“VIRUSES();”调用VIRUSES函数。寻找printf、for、whi
draw
- //获得当前的模式 oldmode = vga_getcurrentmode[] //初始化 vga_init[] //判断是否支持该模式 if[vga_hasmode[mode]] vga_setmode[mode] else { printf["No such mode\n"] exit[1] } //取得信息 width = vga_getxdim[] h
info
- //获得当前的模式 oldmode = vga_getcurrentmode[] //初始化 vga_init[] //判断是否支持该模式 if[vga_hasmode[mode]] vga_setmode[mode] else { printf["No such mode\n"] exit[1] } //获得当前的模式 mode = vga_getcurrentm
justforfun
- srand[getpid[]] /* initialize some of the memory */ memset[heightmap, 0, MAPSIZE*MAPSIZE] memset[vpage, 0, RENDERWIDTH * RENDERHEIGHT] printf["Creating dx d fractal terrain\n", MAPSIZE, MAPSIZE] heightmap[0] = [rand[] 128] +
yacc
- srand[getpid[]] /* initialize some of the memory */ memset[heightmap, 0, MAPSIZE*MAPSIZE] memset[vpage, 0, RENDERWIDTH * RENDERHEIGHT] printf["Creating dx d fractal terrain\n", MAPSIZE, MAPSIZE] heightmap[0] = [rand[] 128] +
printp
- 因为“飞思卡尔”S12单片机不支持Printf()函数,要想输出还得自己编写输出函数。所以我给大家提供一个Printp90函数吧!-Since " Freescale" S12 does not support single-chip Printf () function, in order to prepare the output will have its own output function. So everyone give me a function Printp
print.tar
- linux下的printf函数实现,实现了部分功能-printf function under linux implementation, implementation of some functions
ch01
- 是《VC++程序设计》是中的一段C++简单代码 输出一段字母-printf words :Helloword!
Lab06
- program that reads an integer value from the terminal and distributes the value to all of the MPI processes. Each process should print out its rank and the value it received. Values should be read until a negative integer is given as input. You may
CE150_JPEG_Entropy_Coding
- 说明:该代码是一个使用DSP库函数变量进行JPEG编码的简单应用范例。开发环境:用MPLAB C30编译,用ICD2在线调试和编程。-Descr iption: The code is a variable using the DSP library functions to the simple application of JPEG encoder example. Development Environment: The MPLAB C30 compiler, the ICD2 debug