首页 > > 详细

调试数据库、struct 语言程序讲解留学生、解析Statistics统计、struct 讲解

#include
#include
#include
using namespace std;
typedef struct ID
{
string array[1000];
int index;
} id;

typedef struct JCQ01
{
char array[2][2];
}jcq01;
typedef struct CCQ
{
int array[1000];
}ccq;
typedef struct StateR
{
int array[6];
int index;
}stater;

void initID(id *instruction)
{
instruction->index=0;
}

void initStateR(stater *s)
{
s->index=0;
}
void OutputEmptyLine()
{
cout> s ) {
cout array[instruction->index]=s;
instruction->index++;;
}
}
int Regnumber(string chara)
{
if(chara=="R0")
{return 0;}
if(chara=="R1")
{return 1;}
if(chara=="R2")
{return 2;}
if(chara=="R3")
{return 3;}
if(chara=="R4")
{return 4;}
if(chara=="R5")
{return 5;}
if(chara=="R6")
{return 6;}
if(chara=="R7")
{return 7;}
if(chara=="R8")
{return 8;}
if(chara=="R9")
{return 9;}
if(chara=="R10")
{return 10;}
if(chara=="R11")
{return 11;}
if(chara=="R12")
{return 12;}
if(chara=="R13")
{return 13;}
if(chara=="R14")
{return 14;}
if(chara=="R15")
{return 15;}
}
int ten__two(int data)
{
char x[17][5] = {"0000",
"0001",
"0010",
"0011",
"0100",
"0101",
"0110",
"0111",
"1000",
"1001",
"1010",
"1011",
"1100",
"1101",
"1110",
"1111","xxxx"};
printf("%s",x[data]);
}
//
int hex__two2(char c)
{
char x[17][5] = {
"0000", "0001", "0010", "0011",
"0100", "0101", "0110", "0111",
"1000", "1001", "1010", "1011",
"1100", "1101", "1110", "1111"
};
int n = 16;
if (c >= 'a' c = 'A' c = '0' c = 'a' c = 'A' c = '0' c = '0' c = 'a' c = 'A' c array[Rnumber][0];

ten_hex(Rnumbed,a);//16
coutA
coutarray[m]array[m]'F')
{
s->array[0]=1;//H
}

datarray[Rnumberd][0]=datarray[Rnumberd][0]+datarray[Rnumberr][0];
//
//,⊕=1,
ten_hex(datarray[Rnumberd][0],c);


//,, S1
if(hex__two2(c[0]))
{
s->array[2]=1;//V
s->array[1]=0;//S
}
if(datarray[Rnumberd][0]>255)
{
//
s->array[5]=1;//C
s->array[1]=0;//S
}
if(datarray[Rnumberd][0]==0)
{
s->array[4]=1;//Z
}
if(datarray[Rnumberd][0]array[3]=1;//N
}


ten_hex(Rnumberd,a);
ten_hex(Rnumberr,b);

coutarray[m]array[0]=1;//H
}


datarray[Rnumberd][0]=datarray[Rnumberd][0]-datarray[Rnumberr][0];


//,⊕=1,
ten_hex(datarray[Rnumberd][0],c);

//,, S1
if(hex__two2(c[0]))
{
s->array[2]=1;//V
s->array[1]=0;//S
}
if(datarray[Rnumberd][0]>255)//
{
//
s->array[5]=1;//C
s->array[1]=0;//S
}
if(datarray[Rnumberd][0]==0)
{
s->array[4]=1;//Z
}
if(datarray[Rnumberd][0]array[3]=1;//N
}

ten_hex(Rnumberd,a);
ten_hex(Rnumberr,b);

coutarray[m]array[1][0]=c[0];
zf->array[1][1]=c[1];
//
zf->array[0][0]=c[2];
zf->array[0][1]=c[3];


coutarray[m]array[locate]=data;

ten_hex(Rnumberr,a);

coutarray[m]array[m]array[m]array[m]array[locate];
charray[Rnumberd][0]=charray[locate][0];
charray[Rnumberd][1]=charray[locate][1];

ten_hex(Rnumberd,a);

coutarray[m]array[0][0]);
coutarray[0][1]);
coutarray[0][0];
coutarray[0][1];
coutarray[1][0]);
coutarray[1][1]);
coutarray[1][0];
coutarray[1][1];
cout=10)
{
cout=16)
{
ten_hex(pctemp[3]-16,pcchar2);
pctemp[2]=1;
cout=16)
{
ten_hex(pctemp[3]-16,pcchar2);
pctemp[2]=1;
cout=16)
{
ten_hex(pctemp[3]-16,pcchar2);
pctemp[2]=1;
cout=16)
{
ten_hex(pctemp[3]-16,pcchar2);
pctemp[2]=1;
cout=16)
{
ten_hex(pctemp[3]-16,pcchar2);
pctemp[2]=1;
cout=16)
{
ten_hex(pctemp[3]-16,pcchar2);
pctemp[2]=1;
cout=16)
{
ten_hex(pctemp[3]-16,pcchar2);
pctemp[2]=1;
cout=16)
{
ten_hex(pctemp[3]-16,pcchar2);
pctemp[2]=1;
cout=16)
{
ten_hex(pctemp[3]-16,pcchar2);
pctemp[2]=1;
cout=16)
{
ten_hex(pctemp[3]-16,pcchar2);
pctemp[2]=1;
cout< }
cout<<": ";
//
NOP(s);
}
}

cout< cout< //R0
cout<<""< cout<<"----------------------"< cout<<"R0 : ";
hex__two(zf.array[0][0]);
cout<<" ";
hex__two(zf.array[0][1]);
cout<<" ";
cout< cout< cout< //R1

cout<<"R1 : ";
hex__two(zf.array[1][0]);
cout<<" ";
hex__two(zf.array[1][1]);
cout<<" ";
cout< cout< cout< //R2
cout<<"----------------------"< char two[2];
printfR(2,datarray,two);


//R3
char three[2];
printfR(3,datarray,three);

//R4
char four[2];
printfR(4,datarray,four);

//R5

char five[2];
printfR(5,datarray,five);

//R6
char six[2];
printfR(6,datarray,six);

//R7

char secven[2];
printfR(7,datarray,secven);

//R8
char eight[2];
printfR(8,datarray,eight);

//R9
char nine[2];
printfR(9,datarray,nine);
//R10
char ten[2];
printfR(10,datarray,ten);

//R11

char eleven[2];
printfR(11,datarray,eleven);

//R12

char twelve[2];
printfR(12,datarray,twelve);
//R13
char thirteen[2];
printfR(13,datarray,thirteen);
//R14

char fourteen[2];
printfR(14,datarray,fourteen);

//R15

char fifteen[2];
printfR(15,datarray,fifteen);
cout<<"----------------------"< char dataa[2];char dataaaa[2];
ten_hex(datarray[14][0],dataa);
cout<<""< cout<<""< cout<<""< cout<<""< ten_hex(c.array[datarray[14][0]],dataaaa);

hex__two(dataaaa[0]);
cout<<" ";
hex__two(dataaaa[1]);
cout<<" ";
cout< cout< getchar();
return 0 ;
}
 

联系我们
  • QQ:99515681
  • 邮箱:99515681@qq.com
  • 工作时间:8:00-21:00
  • 微信:codinghelp
热点标签

联系我们 - QQ: 99515681 微信:codinghelp
程序辅导网!