#include <malloc.h>
#include <iostream>
using namespace std;
#define error -1;
#define ok 1;
typedef int ElemType;
typedef int Status;
typedef struct LNode
{
ElemType data;
struct LNode *next;
}LNode,*LinkList;
......................
阅读全部
|
一天一天谎言
贴于 2015年3月28日 20:39
hide
bbsi
#include <malloc.h>
#include <iostream>
using namespace std;
#define error -1;
#define ok 1;
typedef int ElemType;
typedef int Status;
typedef struct LNode
{
ElemType data;
struct LNode *next;
}LNode,*LinkList;
......................
阅读全部
|
一天一天谎言
贴于 2015年3月28日 19:55
hide
bbsi
:0001.0200 05004E add ax, 4E00
:0001.0203 005400 add [si+00], dl
:0001.0206 4C dec sp
:0001.0207 004400 add [si+00], al
:0001.020A 52 push dx
:0001.020B 0004 add [si], al
:0001.020D 0024 add [si], ah
:0001.020F 004900 add [bx+di+00], cl
:0001.0212 3300 xor ax, [bx+si]
:0001.0214 3000 xor [bx+si], al
:0001.0216 00E0 add al , ah
......................
阅读全部
|
iytcel
贴于 2015年3月27日 21:51
hide
bbsi
#include "STC12C5A.H"
sbit AD=P1^0; //定义音频输入接口 //错误
sbit K1=P1^2; //定义功能按键接口 //错误
sbit K2=P1^4; //定义功能按键接口 //错误
sbit K3=P3^5; //定义功能按键接口 //错误
sbit K4=P3^6; //定义功能按键接口
sbit VCC1=P1^5; //定义电源功能接口必须为高电平
sbit VCC2=P1^7; //定义电源功能接口必须为高电平
sbit VCC3=P3^2; //定义电源功能接口必须为高电平
sbit VCC4=P3^4; //定义电源功能接口必须为高电平
......................
阅读全部
|
一缕阳光zzs
贴于 2015年3月25日 23:07
hide
bbsi
#include<stdio.h>
main()
{
int i,n,m,a[100];
while(scanf("%d%d",&n,&m)!=EOF)
{
for(i=0;i<=n;i++)
{
scanf("%d",&a[i]);
}
i=n;
while(m<a[i]&&i>=0)
......................
阅读全部
|
等等等
贴于 2015年3月24日 07:18
hide
bbsi
#include<stdio.h>
#define N 200
struct child
{
char name[10];
char sex[3];
int age;
int height;
float weight;
struct {
int year;
int month;
......................
阅读全部
|
wangbk603
贴于 2015年3月22日 20:25
hide
bbsi
#define N 200
#include <graphics.h>
#include <stdlib.h>
#include <dos.h>
#define LEFT 0x4b00
#define RIGHT 0x4d00
#define DOWN 0x5000
#define UP 0x4800
#define ESC 0x011b
int i,key;
int score=0;/*得分*/
int gamespeed=50000;/*游戏速度自己调整*/
......................
阅读全部
|
夏殇
贴于 2015年3月19日 00:11
hide
bbsi
#include<stdio.h>
#define MAXN 20
int a[MAXN][MAXN];
main()
{
int min, /* 存储最小值 */
max; /* 存储最大值 */
int row,col,n;
printf("Please input the order of the matrix:\n");/* 输入方阵的阶次 */
scanf("%d",&n);
printf("Please input the elements of the matrix,\n from a[0][0] to a[%d][%d]:\n",n-1,n-1);
for(row=0;row<n;row++)
......................
阅读全部
|
whc19940817
贴于 2015年3月17日 23:27
hide
bbsi
#include<stdio.h>
main()
{
int i,j,x=1,y=3,a[6][6]={0};
for(i=1;i<=25;i++)
{
a[x][y]=i;
if(x==1&&y==5)
{
x=x+1;
continue;
}
......................
阅读全部
|
lyd910915
贴于 2015年3月17日 13:40
hide
bbsi