#include
#include
#include
#include
#include
static int flag=0;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
void print_bin(unsigned int n,int m)//字符转为8位2进制 ,1行显示16位或24位
{
int l = sizeof(n)*8;//总位数。
int i=7;
/*if(i == 0)
{
printf("0");
return;
}
for(i = l-1; i >= 0; i --)//略去高位0.
{
if(n&(1
有关于h264方面的书籍,用于查阅资料和学习,深入理解视频编解码技术 基于H.264标准及参考模型.pdf(There are books on h264, which are used to read data and learn, and to understand video codec technology deeply, based on H.264 standard and reference model.Pdf.)
单片机程序设计100例,基于51的设计,初学者的好帮手,我的入门导师啊。呵呵呵呵!(100 cases of SCM process design, based on 51 design, a good helper for beginners, I started mentor ah. Oh Oh!)
说明: (1)实现一个加减乘除运算的小型系统,进行整数的加、减、乘、除运算;
(2)在每一种运算下,由系统随机产生两个数(数值大小在1~100之间)参加运算,当用户根据系统提供的公式进行计算,并输入计算结果后,系统判断结果的对错。如果结果正确,则显示“Very Good”,否则,显示“Wrong!!!”。
(3)每次选择一种运算后,系统随机产生5或10道题目(需保证出的题目不超纲,即加法和与乘积不能超出100、减法结果不能出现负数、除法必须能整除),当用户运算完毕后,系统给出正确率。如用户10题答对了6题,则显示正确率为60%。每道题目可以考虑最多给2次答题机会。运算完毕后,系统将返回主菜单,供用户再次选择。(To achieve a multiplication and subtraction multiplication and division of small systems, integer addition, subtraction, multiplication and division operations)