```
// 22handwriting03Recogni01
// Created by terry on 2022/3/6.
#define n10 10
#define n5 5
**int** aa\[10\]\[10\]\[10\]\[10\];
#include
#include
**void** set00make00letter0(**int** nstar=0,**int** Nend=n10)
{
**for**(**int** i=nstar;i<=Nend;++i) {
**for**(**int** j=0;j<n10;++j) {
**for**(**int** k=0;k<n10;++k) {
**for**(**int** m=0;m<n10;++m) { aa\[i\]\[j\]\[k\]\[m\]=0; }
}//for330k
}//for220j
}//for110i
}//
**void** make01letter1(**int** nn=1)
{
//
**for**(**int** i=0;i<n10;++i) {
**int** rmd1=n5;
**for**(**int** j=1;j<(n10\-1);++j) {
**int** t=rand()%11;
**if**(t<1) rmd1= rmd1-1;
**if**(t>=(n10\-1) ) rmd1=rmd1+1;
aa\[nn\]\[i\]\[j\]\[rmd1\]=1;
}//forj330
}
//
//
}//
**void** make01\_letter\_2(**int** nn=2)
{
//
**for**(**int** i=0;i<10;++i) {
**int** rmd1=n5;
**for**(**int** j=1;j<(n10\-1) ;++j) {
**int** t=rand()%n10;
**if**(t<2) rmd1= rmd1-1;
**if**(t>9) rmd1=rmd1+1;
aa\[nn\]\[i\]\[rmd1\]\[j\]=1;
}//forj330
}
//
}//
//++++++++++++++++++++++++++++++++++
**void** make01\_letter\_add\_03(**int** nn=3) //
{
//
**for**(**int** i=0;i<10;++i) {
**int** rmd1=n5;
//--一横--
**for**(**int** j=1;j<(n10\-1) ;++j) {
**int** t=rand()%n10;
**if**(t<1) rmd1= rmd1-1;
**if**(t>9) rmd1=rmd1+1;
aa\[nn\]\[i\]\[rmd1\]\[j\]=1;
}//forj330
//||一竖||||
rmd1=n5;
**for**(**int** j=1;j<(n10\-1) ;++j) {
**int** t=rand()%n10;
**if**(t<1) rmd1= rmd1-1;
**if**(t>9) rmd1=rmd1+1;
aa\[nn\]\[i\]\[j\]\[rmd1\]=1;
}//forj330
//||一竖-End||
}
//
}//
**void** make01\_letter\_0(**int** nn=0)
{
//
**int** rmd1x=5;
**int** rmd2y=5;
**int** Rr=4;
**float** x=0;
**float** y=0;
Rr=4;
**for**(**int** i=0;i<10;++i) {
**for**(**int** j=0;j<=360;++j) {
**int** rmd= rand()/11;
**if**(rmd<2) Rr=Rr-1;
**if**(rmd>9) Rr=Rr+1;
x= cos( atan(1.0)/45.0 \*j )\*4.0 +5.0;
y= sin( atan(1.0)/45.0 \*j )\*4.0\+ 5;
aa\[nn\]\[i\]\[(**int**)x\]\[(**int**)y\]=1;
}//for110j
}//for110i
//
}//
**void** print01letter1(**int** NN=1)
{
**for**(**int** i=0;i<10;++i) {
**for**(**int** j=0;j<10;++j) {
**for**(**int** k=0;k<10;++k) {
std::cout<< aa\[NN\]\[i\]\[j\]\[k\];
}//for330k
std::cout<<std::endl;
}//for220j
std::cout<<"\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_"<<std::endl;
}//for110i
}
**int** main(**int** argc, **const** **char** \* argv\[\]) {
// insert code here...
set00make00letter0(0,n10);
make01letter1();
print01letter1();
make01\_letter\_2();
print01letter1(2);
std::cout<<"=0=0=================="<<std::endl;
make01\_letter\_0(0);
print01letter1(0);
make01\_letter\_add\_03();
print01letter1(3);
std::cout << "Hello, World!\\n";
**return** 0;
}//main
```