Skip to content

Instantly share code, notes, and snippets.

View JRY-Zheng's full-sized avatar
🤪

Junruoyu Zheng JRY-Zheng

🤪
View GitHub Profile
@JRY-Zheng
JRY-Zheng / Calculator
Created July 31, 2015 01:05
Inputing a Math Expression and How to Calculate its Answer //输入表达式如何计算答案
#include <reg51.h>
#include <stdio.h>
#include <string.h>
#include"Lcd1602.h"
#include"KeyDown.h"
#include"delay.h"
unsigned char code KEY_CODE[16]= "123+456-789*.0=/";
void main()
{
unsigned char m,i,j,k,l; /*m用以记录每次单击的键值,需-1处理后才得到键值;