注册 登录
中国神经科学论坛 返回首页

chenghwn的个人空间 https://bbs.bioguider.com/?68 [收藏] [复制] [分享] [RSS]

日志

简化的证明小程序

已有 814 次阅读2020-12-22 20:42 |个人分类:智能科学

下面是我新编写的一个证明小程序。编程序真辛苦啊,一个小错误往往需要寻找很长时间。我不适合编程,但没有办法。可能还要自己再独自编程很长一段时间……。这只是程序的运行部分,文件部分是另一个小程序。
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;

namespace WindowsFormsApplication9
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        #region  //文件记录
        int zsk1 = 8; int lingshilabel1 = 0; int ydbiaozhi = 0; int csbl = 1; int zzydxfqd1 = 0; int zsk = 0;
        FileStream hd = new FileStream("D:\\tm.txt", FileMode.Create);
        FileStream fd = new FileStream("d://lwj.txt", FileMode.Create);
        int qlabelrecordnumber = 0;
        FileStream jl = new FileStream("d:\\jlwj.txt", FileMode.Open);
        FileStream jlyd = new FileStream("d://jlyd.txt", FileMode.Open); //打开文件
        FileStream zzymddx = new FileStream("d:// zzymddx.txt", FileMode.Create);//1
        FileStream cjcrm = new FileStream("d:// cjcr.txt", FileMode.Create);//2
        FileStream zzydx = new FileStream("d:// zzydx.txt", FileMode.Create);//3
        FileStream ztzs = new FileStream("d:// ztzs.txt", FileMode.Create);//4
        FileStream xf = new FileStream("d:// xf.txt", FileMode.Create);//5
        FileStream xfy = new FileStream("d:// xfy.txt", FileMode.Create);//6
        FileStream jcyqqdm = new FileStream("d:// jcyqqd.txt", FileMode.Create);//7
        FileStream textfil = new FileStream("d://textfil.txt", FileMode.Open);//8
        FileStream qzzymddx = new FileStream("d:// qzzymddx.txt", FileMode.Create);//10
        FileStream qdzs = new FileStream("d:// qdzs.txt", FileMode.Create);//9
        FileStream zzydxxz = new FileStream("d:// zzydxxz.txt", FileMode.Create);//11
        FileStream jcyq = new FileStream("d:// jcyq.txt", FileMode.Create);//12
        FileStream jczs = new FileStream("d:// jczs.txt", FileMode.Create);//13
        FileStream pjqdzsqdm = new FileStream("d:// pjqdzsqd.txt", FileMode.Create);//14
        FileStream pjcfqdm = new FileStream("d:// pjcfqd.txt", FileMode.Create);//15
        FileStream pjcyqqdm = new FileStream("d:// pjcyqqd.txt", FileMode.Create); //16
        FileStream ydzs = new FileStream("d:// ydzs.txt", FileMode.Create);
        #endregion
        #region //调用的函数
        void fdlabelfun(int fdlabel, ref FileStream fd)
        {
            switch (fdlabel)
            {// zzymddx cjcr zzydx ztzs xf xfy jcyqqd qzzymddx qdzs zzydxxz jcyq jczs pjqdzsqd pjcfqd pjcyqqd
                case 1:
                    fd = zzymddx;
                    break;
                case 2:
                    fd = cjcrm;
                    break;
                case 3:
                    fd = zzydx;
                    break;
                case 4:
                    fd = ztzs;
                    break;
                case 5:
                    fd = xf;
                    break;
                case 6:
                    fd = xfy;
                    break;
                case 7:
                    fd = jcyqqdm;
                    break;
                case 8:
                    fd = textfil;
                    break;
                case 9:
                    fd = qdzs;
                    break;
                case 18:
                    fd = jlyd;
                    break;
                case 19:
                    fd = jl;
                    break;
            }
        }
        #endregion
        int tcxfyz = 0;
        int qlabeltime = 0; int zslabel = 0;
        int xfrecordnumber1 = 0; int hy = 1; int zsk3 = 0;
        #region //1主程序
        private void button1_Click(object sender, EventArgs e)
        {
            #region //11一些准备
            StreamWriter wj = new StreamWriter(hd);
            StreamWriter wj1 = new StreamWriter(fd);
            int qlabel; int xfqdrecordnumber = 0; int qdbz = 0; int n = 0; int nn = 1;
            int xz = 0; int zzymdxfqd = 0;
            for (n = 1; n <= 1888; n++)
            {
                int ling = 0;
                for (int fdlabel = 1; fdlabel <= 16; fdlabel++)
                {
                    if (fdlabel != 8 & fdlabel != 9)
                    {
                        putfun(n, ling, fdlabel, fd); //
                    }
                }
            }
            for (n = 4000; n <= 5800; n++)
            {
                int ling = 0;
                for (int fdlabel = 1; fdlabel <= 16; fdlabel++)
                {
                    if (fdlabel != 8 & fdlabel != 9)
                    {
                        putfun(n, ling, fdlabel, fd); //
                    }
                }
            }
            int jyzjcxfqd; int tcxfqda = 0; int qdjlrecordnumber = 0; int ydjsbz = 0;
            int lingshilabel; int jyzxfqd3 = 0; int jyzxfqd1 = 0; int jyzxfqd2 = 0;
            int labelnumber = 0; int qdmdjcyq = 0;
            n = 0;
            int zrecordnumber = 9600;
            int subzrecordnumber;
            subzrecordnumber = 1600;
            int subjyzrecordnumber = subzrecordnumber;
            zrecordnumber = 9600;
            int label = 0;
            //记录的传到奖惩预期中枢的动力大小。总的记录数为165043200
            int drecordnumber = (subzrecordnumber - 100) / 2; //段记录;
            int z = 0;//表示传出的是根据记忆柱的兴奋强度传出。传出到其联络区;
            //奖赏中枢的核心记忆柱群的不易兴奋的记忆柱19238400
            //惩罚中枢的核心记忆柱群的不易兴奋的记忆柱 19238400 + 9600 * 2;
            int[] kongjn = new int[10]; //感觉传入再传出。weizhi代表8种兴奋参数,既可以表示强度也可以表示其它信息。

            kongjn[1] = 22222222;
            kongjn[2] = 22222122;
            kongjn[3] = 12222221;
            kongjn[4] = 11112222;
            kongjn[5] = 22221111;
            kongjn[6] = 21112112;
            kongjn[7] = 12111211;
            kongjn[8] = 11111121;
            kongjn[9] = 11111111;
            jyzjcxfqd = 1880; int jyzxfqdlabel = 0;
            int clengthn; int ydlabell = 0; int ydsrvalue = 0;
            int jyzxfqd = 0;
            int qyaacyqjs = 0; jyzxfqd = 0; int bypjyzqd = 0; int zj = 0;
            int zzydxpjyzqd = 0; int biaozhi = -1;
            int[] zzydxqd = new int[10];

            int zzydxfqd = 0;
            int[,] zzymdxz = new int[7, 10];
            int[] zzymdxzqd = new int[7]; //主注意目的对象的选择的参数
            int zqtime = 0;
            int recordnumber = 0; int xfrecordnumber = 0; int zzydxlabel = 0;
            int arecordnumber = 0;
            int zsk = 18; int jrlabel = 15; int labelrecordnumber = 1;
            #endregion //11一些准备
            #region //12周期性计算
            int jrlabell = 0;
            getfun(labelrecordnumber, ref jrlabell, zsk, fd);
            for (int labelrecordnumberr = 2; labelrecordnumberr <= jrlabell + 1; labelrecordnumberr++)
            {
                #region  //121参数准备
                int lInputDistanceMeasurement = 0;
                int jcvalue = 0; int zskk = 1; ydsrvalue = 0; int kjbz = 0;
                zsk = 8; int jltime = 0; int jltimebc = 9584;
                getfun(jltimebc, ref jltime, zsk, fd); jltime = jltime + 1; putfun(jltimebc, jltime, zsk, fd);
                int qzqtime = zqtime; //设置时间标志。qzqtime前一兴奋周期的兴奋时间
                zqtime = jltime;
                zsk = 18;
                /*if ((biaozhi % 4) == 1)
                {
                    getfun(labelrecordnumberr, ref ydsrvalue, zsk, fd);
                    wj.WriteLine("ydsrvalue,{0}", ydsrvalue);
                }*/
                int alabelrecordnumber1 = labelrecordnumberr + 3000;
                getfun(alabelrecordnumber1, ref lInputDistanceMeasurement, zsk, fd);
                wj.WriteLine("lInputDistanceMeasurement,{0}", lInputDistanceMeasurement);
                #region // 周期参数标志label
                //这一兴奋周期的时间.它是记忆柱总的兴奋时间,也是展示框的兴奋时间
                if ((int)label == 1) //确定本兴奋周期读的展示框的标志(label)。
                {
                    label = 2;
                    qlabel = 1; //后一兴奋周期展示框的标志,也是记忆标志,也是前一兴奋周期兴奋的记忆柱所在展示框。;
                }
                else
                {
                    label = 1;
                    qlabel = 2;
                }
                int labelrecordnumber1 = 1;
                labelrecordnumber = (label - 1) * 4000 + 1; //本周期被读取的展示框的记录标志。它记录的是前一兴奋周期记录下来的将要兴奋的记忆柱;
                //读labelrecordnumber,计算后记入qlabelrecordnumber。
                int qlabelrecordnumber = (qlabel - 1) * 4000 + 1; //后一兴奋周期将要兴奋的记忆柱。也是前一兴奋周期所在展示框;
                #endregion // 周期参数标志label

                //像奖惩一样主注意对象对它进行兴奋
                #region //   获得运动传出
                if ((biaozhi % 4) > 1)
                {
                    if (ydjsbz != 4)
                    {
                        int ydrecordnmber = 0;
                        labelnumber = 0;
                        int ydqd = 0;
                        int jllabel = 21;
                        zsk = 19; int labelrecordnumbery = 0;
                        getfun(jllabel, ref labelrecordnumbery, zsk, fd);
                        for (recordnumber = 1; recordnumber <= 9; recordnumber++)
                        {
                            xfrecordnumber = labelrecordnumbery + 9600 * 2 * (recordnumber - 1) + 9578;
                            zsk = 8;
                            lingshilabel1 = xfrecordnumber - 78 + 67 + (qlabel - 1) * 3;
                            int qjyzxftime = 0;
                            getfun(lingshilabel1, ref qjyzxftime, zsk, fd);
                            if (qjyzxftime == qzqtime)
                            {
                                int jyzxfqdrecordnumber = xfrecordnumber - 78 + 67 + (qlabel - 1) * 3 + 2; //获得记忆柱的前兴奋强
                                getfun(jyzxfqdrecordnumber, ref jyzxfqd, zsk, fd);
                                /*if (recordnumber == 4)
                                {
                                    ydqd4 = jyzxfqd;
                                    ydrecordnmber4 = xfrecordnumber;
                                    wj.WriteLine("ydqd4,xfrecordnumber,{0},{1}", ydqd4, xfrecordnumber);
                                }
                                if (recordnumber == 5)
                                {
                                    ydqd5 = jyzxfqd;
                                    ydrecordnmber5 = xfrecordnumber;
                                    wj.WriteLine("ydqd5,xfrecordnumber,{0},{1}", ydqd5, xfrecordnumber);
                                }*/
                                if (ydqd <= jyzxfqd)
                                {
                                    ydqd = jyzxfqd;
                                    ydrecordnmber = (xfrecordnumber - labelrecordnumbery) / 9600 / 2 + 1;
                                    wj.WriteLine("ydqd,xfrecordnumber,recordnumber,{0},{1},{2}", ydqd, xfrecordnumber, recordnumber);
                                }
                            }
                        }
                        /*if (ydqd5 > ydqd4)
                        {
                            ydrecordnmber = (ydrecordnmber5 - labelrecordnumbery) / 9600 / 2 + 1;
                        }
                        if (ydqd5 <= ydqd4)
                        {
                            ydrecordnmber = (ydrecordnmber4 - labelrecordnumbery) / 9600 / 2 + 1;
                        }*/
                        int ydlabell1 = ydrecordnmber;
                        wj.WriteLine("ydlabell1,xfrecordnumber,{0},{1}", ydlabell1, xfrecordnumber);
                        switch (ydlabell1)
                        {
                            case 5:
                                ydlabell = 30;
                                break;
                            case 4:
                                ydlabell = 20;
                                break;
                            case 3:
                                ydlabell = 10;
                                break;
                            /*case 1:
                                ydlabell = 15;
                                break;*/
                        }
                    }
                    if (ydbiaozhi == 1)
                    {
                        ydsrvalue = ydlabell;
                        if (ydsrvalue < 8)
                        {
                            ydsrvalue = 0;
                        }
                        hy = 10;
                    }
                }
                #endregion  //获得运动传出


                if (ydbiaozhi == 2)
                {
                    ydsrvalue = 10;
                }
                if (ydbiaozhi == 3)
                {
                    ydsrvalue = 20;
                }
                if (ydbiaozhi == 5)
                {
                    ydsrvalue = 30;
                }
                if (lInputDistanceMeasurement > 0 & lInputDistanceMeasurement < 1000)
                {
                    biaozhi = biaozhi + 1;
                }
                if (lInputDistanceMeasurement == 0 | lInputDistanceMeasurement > 1000)
                {
                    goto DistanceMeasurement0;
                }
                int ydqdjlrecordnumber = 0; int recordnumbern;
                wj.WriteLine("ydsrvalue,{0}", ydsrvalue);
                switch (ydsrvalue)
                {//
                    case 30:
                        ydqdjlrecordnumber = 22221111;
                        break;
                    case 10:
                        ydqdjlrecordnumber = 12222221;
                        break;
                    case 20:
                        ydqdjlrecordnumber = 11112222;
                        break;
                }
                #region //1211奖赏参数
                if (ydsrvalue == 30)
                {
                    jcvalue = 7;
                }
                if (ydsrvalue == 20)
                {
                    jcvalue = 1;
                }
                if (ydsrvalue == 10)
                {
                    jcvalue = 12;
                }
                #endregion //1211奖赏

                if ((biaozhi % 4) == 1)
                {
                    jcvalue = 0;
                }
                if (ydjsbz == 4)
                {
                    jcvalue = 0;
                }
                for (zsk = 1; zsk <= 16; zsk++) //获取与设置读写的展示框。前一周期被读取的展示框的记录标志要归零,成为后一兴奋周期。
                {
                    lingshilabel = 0;
                    if (zsk == 8 | zsk == 9 | zsk == 3) continue;
                    putfun(qlabelrecordnumber, lingshilabel, zsk, fd);
                    if (zsk == 2)
                    {
                        putfun(labelrecordnumber, lingshilabel, zsk, fd);
                    }
                } //for zsk=1 to 17
                #endregion//121参数准备
                //9585
                #region CODECLIP 0  //输入运动
                int inputvalue = ydsrvalue; int[] opheight = new int[9]; int opcheightn = 0; int zhongjie = 0; int kongjnn = 0;
                if ((biaozhi % 4) != 1)
                {
                    if (ydsrvalue > 8)
                    {
                        kongjnn = ydqdjlrecordnumber;
                        /*n = 20; zsk = 19;
                        getfun(n, ref arecordnumber, zsk, fd);
                        for (int number = 1; number <= 8; number++)
                        {
                            zhongjie = (opcheightn + zhongjie) * 10;
                            opcheightn = Convert.ToInt32(kongjnn / (Math.Pow(10, (8 - number)))) - zhongjie; //顺序获得8个表示强弱的数字
                            opheight[number] = opcheightn; //得到opheight(1),opheight(1),opheight(1)……等等。
                        }
                        //获得8个数据传入,传到对应的中枢相应的位置
                        recordnumbern = 0;
                        for (clengthn = 1; clengthn <= 8; clengthn++)
                        {
                            int cwidthnn = opheight[clengthn]; //定位基本记忆柱cwidthnn相当于cwidth[n].cwidthn=2              
                            //包含易兴奋的与不易兴奋的,是应该传到的。是所在记忆柱的起始前的recordnumber
                            recordnumbern = arecordnumber + (clengthn - 1) * 2 * 9600 * 2 + (cwidthnn - 1) * 9600 * 2 + 9578; //运动控制             
                            zsk = 2;
                            getfun(labelrecordnumber, ref jrlabel, zsk, fd);
                            lingshilabel = jrlabel + 1;
                            putfun(labelrecordnumber, lingshilabel, zsk, fd);
                            lingshilabel = labelrecordnumber + jrlabel + 1;
                            putfun(lingshilabel, recordnumbern, zsk, fd);
                            lingshilabel = lingshilabel + 2000;
                            xfqdrecordnumber = 308 * 10 / hy;
                            putfun(lingshilabel, xfqdrecordnumber, zsk, fd);
                        }*/
                        n = 2; zsk = 19;
                        getfun(n, ref arecordnumber, zsk, fd);
                        opcheightn = 0;
                        zhongjie = 0;
                        for (int number = 1; number <= 8; number++)
                        {
                            zhongjie = (opcheightn + zhongjie) * 10;
                            opcheightn = Convert.ToInt32(kongjnn / (Math.Pow(10, (8 - number)))) - zhongjie; //顺序获得8个表示强弱的数字
                            opheight[number] = opcheightn; //得到opheight(1),opheight(1),opheight(1)……等等。
                        }
                        //获得8个数据传入,传到对应的中枢相应的位置
                        recordnumbern = 0;
                        for (clengthn = 1; clengthn <= 8; clengthn++)
                        {
                            int cwidthnn = opheight[clengthn]; //定位基本记忆柱cwidthnn相当于cwidth[n].cwidthn=2              
                            //包含易兴奋的与不易兴奋的,是应该传到的。是所在记忆柱的起始前的recordnumber
                            recordnumbern = arecordnumber + (clengthn - 1) * 2 * 9600 * 2 + (cwidthnn - 1) * 9600 * 2 + 9578; //运动控制             
                            zsk = 2;
                            if (recordnumbern == 297578)
                            {
                                int tqjy = 100;
                            }
                            getfun(labelrecordnumber, ref jrlabel, zsk, fd);
                            lingshilabel = jrlabel + 1;
                            putfun(labelrecordnumber, lingshilabel, zsk, fd);
                            lingshilabel = labelrecordnumber + jrlabel + 1;
                            putfun(lingshilabel, recordnumbern, zsk, fd);
                            lingshilabel = lingshilabel + 2000;
                            xfqdrecordnumber = 300 * 10;
                            putfun(lingshilabel, xfqdrecordnumber, zsk, fd);
                            wj.Write(" 运动出入,clengthn,cwidthnn,recordnumbern ,xfqdrecordnumber,{0},{1},{2},{3}", clengthn, cwidthnn, recordnumbern, xfqdrecordnumber);
                        }
                    }
                }
                #endregion //输入运动
                #region CODECLIP 03//输入距离进行转化
                /*int[] kongjn = new int[10]; //感觉传入再传出。weizhi代表8种兴奋参数,既可以表示强度也可以表示其它信息。
  kongjn[1] = 22222222;
                kongjn[2] = 22222122;
                kongjn[3] = 12222221;
                kongjn[4] = 11112222;
                kongjn[5] = 22221111;
                kongjn[6] = 21112112;
                kongjn[7] = 12111211;
                kongjn[8] = 11111121;
                kongjn[9] = 11111111;*/
                /*int distancebasevalue = 1;
                if (lInputDistanceMeasurement < distancebasevalue * 85)
                {
                    inputvalue = 22222222;
                }
                if (distancebasevalue * 85 <= lInputDistanceMeasurement & lInputDistanceMeasurement < distancebasevalue * 100)
                {
                    inputvalue = 22221111;
                }
                if (distancebasevalue * 100 <= lInputDistanceMeasurement)
                {
                    inputvalue = 11111111;
                }*/
                inputvalue = 22222222;
                kongjnn = inputvalue;
                n = 4; zsk = 19;
                getfun(n, ref arecordnumber, zsk, fd);
                opcheightn = 0; zhongjie = 0;
                for (int number = 1; number <= 8; number++)
                {
                    zhongjie = (opcheightn + zhongjie) * 10;
                    opcheightn = Convert.ToInt32(kongjnn / (Math.Pow(10, (8 - number)))) - zhongjie; //顺序获得8个表示强弱的数字
                    opheight[number] = opcheightn; //得到opheight(1),opheight(1),opheight(1)……等等。
                }
                //获得8个数据传入,传到对应的中枢相应的位置
                recordnumbern = 0;
                for (clengthn = 1; clengthn <= 8; clengthn++)
                {
                    int cwidthnn = opheight[clengthn]; //定位基本记忆柱cwidthnn相当于cwidth[n].cwidthn=2              
                    //包含易兴奋的与不易兴奋的,是应该传到的。是所在记忆柱的起始前的recordnumber
                    recordnumbern = arecordnumber + (clengthn - 1) * 2 * 9600 * 2 + (cwidthnn - 1) * 9600 * 2 + 9578; //运动控制             
                    zsk = 2;
                    getfun(labelrecordnumber, ref jrlabel, zsk, fd);
                    lingshilabel = jrlabel + 1;
                    putfun(labelrecordnumber, lingshilabel, zsk, fd);
                    lingshilabel = labelrecordnumber + jrlabel + 1;
                    putfun(lingshilabel, recordnumbern, zsk, fd);
                    lingshilabel = lingshilabel + 2000;
                    xfqdrecordnumber = 300 * 10 / hy;
                    putfun(lingshilabel, xfqdrecordnumber, zsk, fd);
                }
                #endregion//输入距离进行转化

                #region   //奖赏与惩罚刺激
                n = 15; zsk1 = 19; int lingshilabel3 = 0;
                getfun(n, ref lingshilabel3, zsk1, fd);
                jyzxfqdlabel = 200 * 5;
                zsk = 8;

                //奖赏与惩罚是11到14兴奋的数目的多少 n=11到14
                if (jcvalue < 8)
                {
                    xfqdrecordnumber = 300 * jcvalue * 5;
                    xfrecordnumber = lingshilabel3 + (1 - 1) * 9600 * 2 + 9578;
                    cjcr(qlabelrecordnumber, xfrecordnumber, xfqdrecordnumber, zqtime, qzqtime, label, jyzxfqdlabel, jcvalue);
                }
                else
                {
                    xfqdrecordnumber = 200 * 6 * 5;
                    xfrecordnumber = lingshilabel3 + (2 - 1) * 9600 * 2 + 9578;
                    cjcr(qlabelrecordnumber, xfrecordnumber, xfqdrecordnumber, zqtime, qzqtime, label, jyzxfqdlabel, jcvalue);
                }
                #endregion   //奖赏与惩罚刺激
                #region //易化运动中枢
                n = 21; zsk = 19;
                getfun(n, ref arecordnumber, zsk, fd);
                n = 21; zsk1 = 19; lingshilabel3 = 0;
                getfun(n, ref lingshilabel3, zsk1, fd);
                for (n = 1; n <= 9; n++)
                {
                    zsk = 8;
                    xfrecordnumber = lingshilabel3 + 9600 * 2 * (n - 1) + 9578;
                    lingshilabel = xfrecordnumber - 78 + 83;
                    zzydxlabel = 5;
                    putfun(lingshilabel, zzydxlabel, zsk, fd);
                    xfqdrecordnumber = 100 * 5;
                    jyzxfqdlabel = 200 * 5;
                    cjcr(qlabelrecordnumber, xfrecordnumber, xfqdrecordnumber, zqtime, qzqtime, label, jyzxfqdlabel, jcvalue);
                }
                #endregion  //易化运动中枢
                #region  //易化奖惩中枢的联络区
                n = 27; zsk = 19;
                getfun(n, ref arecordnumber, zsk, fd);
                n = 27; zsk1 = 19; lingshilabel3 = 0;
                getfun(n, ref lingshilabel3, zsk1, fd);
                for (n = 1; n <= 36; n++)
                {
                    zsk = 8;
                    xfrecordnumber = lingshilabel3 + 9600 * 2 * (n - 1) + 9578;
                    xfqdrecordnumber = 100 * 5;
                    jyzxfqdlabel = 200 * 5;
                    cjcr(qlabelrecordnumber, xfrecordnumber, xfqdrecordnumber, zqtime, qzqtime, label, jyzxfqdlabel, jcvalue);
                }
                #endregion  //易化奖惩中枢的联络区

                #region     //不易兴奋的记忆柱对易兴奋的抑制。这是智能软件重要的一功能。;
                zsk = 5; xfqdrecordnumber = 0;
                getfun(labelrecordnumber, ref labelnumber, zsk, fd);
                for (recordnumber = 1; recordnumber <= labelnumber; recordnumber++)
                {
                    lingshilabel = labelrecordnumber + recordnumber;
                    zsk = 5;
                    getfun(lingshilabel, ref xfrecordnumber, zsk, fd);//读,计算展示框/ 
                    lingshilabel = xfrecordnumber - 78 + 80;
                    zsk = 8;
                    getfun(lingshilabel, ref zslabel, zsk, fd); //‘获得中枢标志clabel
                    int jyzxfqdrecordnumber = xfrecordnumber - 78 + 67 + (qlabel - 1) * 3 + 2; //获得记忆柱的前兴奋强度的recordnumber。
                    zsk1 = 8;
                    //获得记忆柱的前兴奋强度
                    getfun(jyzxfqdrecordnumber, ref  xfqdrecordnumber, zsk1, fd);
                    lingshilabel = xfrecordnumber - 78 + 76; //空间标志kjbz                  
                    getfun(lingshilabel, ref kjbz, zsk1, fd);
                    lingshilabel = xfrecordnumber - 78 + 83;
                    getfun(lingshilabel, ref zzydxlabel, zsk1, fd);
                    wj.Write(" recordnumber不易kjbz zzydxlabel,{0},{1},{2},{3},{4}", recordnumber, kjbz, xfrecordnumber, xfqdrecordnumber, zzydxlabel);

                    zsk1 = 8;
                    if (biaozhi % 4 == 0 | biaozhi % 4 == 3)
                    {
                        if (biaozhi == 8)
                        { int er = 0; }
                        int xfqdrecordnumbern = 0;
                        lingshilabel = xfrecordnumber - 78 + 83;
                        getfun(lingshilabel, ref zzydxlabel, zsk1, fd);
                        if (zzydxlabel == 2 & (biaozhi % 4 == 3)) // 前主注意对象不易兴奋的记忆柱的抑制
                        {
                            xfqdrecordnumbern = -10000; //传入的抑制强度
                            jyzxfqdlabel = 200 * 5;
                            cjcr(qlabelrecordnumber, xfrecordnumber, xfqdrecordnumbern, zqtime, qzqtime, label, jyzxfqdlabel, jcvalue);
                            lingshilabel = xfrecordnumber - 78 + 83;
                            zzydxlabel = 0;
                            putfun(lingshilabel, zzydxlabel, zsk1, fd);
                        }
                        /*if (biaozhi % 4 == 0 & zzydxlabel == 1) //成为主注意对象
                        {
                            xfqdrecordnumbern = -1 * (xfqdrecordnumber); //传入的抑制强度
                            xfrecordnumber = xfrecordnumber + zrecordnumber; //获得易兴奋的记忆柱);
                            jyzxfqdlabel = 200 * 5;
                            cjcr(qlabelrecordnumber, xfrecordnumber, xfqdrecordnumbern, zqtime, qzqtime, label, jyzxfqdlabel, jcvalue); ; //不易兴奋的记忆柱的抑制传入对应的易兴奋的记忆柱
                        }*/
                    }
                }
                #endregion     //不易兴奋的记忆柱对易兴奋的抑制。这是智能软件重要的一功能。;

                #region //对易兴奋的记忆柱进行分类记录
                zsk = 6;
                getfun(labelrecordnumber, ref labelnumber, zsk, fd);
                wj.Write("....... xz zsk labelnumber biaozhi,{0},{1},{2},{3}", xz, zsk, labelnumber, biaozhi);
                for (recordnumber = 1; recordnumber <= labelnumber; recordnumber++)
                {
                    lingshilabel = labelrecordnumber + recordnumber;
                    zsk = 6; int xfqdrecordnumbern = 0;
                    getfun(lingshilabel, ref xfrecordnumber, zsk, fd);//读,计算展示框
                    int jyzxfqdrecordnumber = xfrecordnumber - 78 + 69 + (qlabel - 1) * 3; //获得记忆柱的前兴奋强度
                    zsk = 8;
                    getfun(jyzxfqdrecordnumber, ref jyzxfqd, zsk, fd);
                    if (biaozhi % 4 == 0)
                    {
                        lingshilabel = xfrecordnumber - 78 + 83;
                        getfun(lingshilabel, ref zzydxlabel, zsk1, fd);
                        if (zzydxlabel == 1) // 前主注意对象易兴奋的记忆柱的抑制
                        {
                            xfqdrecordnumbern = -jyzxfqd / 2; //传入的抑制强度
                            jyzxfqdlabel = 100 * 5;
                            cjcr(qlabelrecordnumber, xfrecordnumber, xfqdrecordnumbern, zqtime, qzqtime, label, jyzxfqdlabel, jcvalue); ; //不易兴奋的记忆柱的抑制传入对应的易兴奋的记忆柱
                        }
                    }
                    lingshilabel = xfrecordnumber - 78 + 80;
                    lingshilabel1 = xfrecordnumber - 78 + 76; //空间标志kjbz
                    getfun(lingshilabel1, ref kjbz, zsk, fd);
                    getfun(lingshilabel, ref zslabel, zsk, fd); //‘获得中枢标志clabel  
                    wj.Write(" recordnumber易kjbz biaozhi,{0},{1},{2},{3},{4}", recordnumber, kjbz, xfrecordnumber, jyzxfqd, biaozhi);
                    if (zslabel == 1) //记入11以进行选择主注意对象,保证是感觉联络区的不易兴奋的记忆柱
                    {
                        zsk = 11;
                        jrzsk(zsk, labelrecordnumber, xfrecordnumber, zqtime, label);
                    }
                }
                #endregion  //对易兴奋的记忆柱进行分类记录

                # region //选择获得主注意对象
                xz = 0;
                if ((biaozhi % 4) == 1)
                {
                    int[,] zzydx = new int[26, 10];
                    int[,] qdzzydx = new int[26, 10];
                    int[] zss = new int[31];
                    int[] zsqd = new int[31]; zzydxpjyzqd = 0;
                    zsk = 11;
                    labelnumber = 0;
                    getfun(labelrecordnumber, ref labelnumber, zsk, fd);
                    if (labelnumber == 0)
                    {
                        goto DistanceMeasurement1;
                    }
                    wj.WriteLine(",,,,,主注意对象选择 ,{0}", labelnumber);
                    for (recordnumber = 1; recordnumber <= labelnumber; recordnumber++)
                    {
                        lingshilabel = labelrecordnumber + recordnumber;
                        zsk = 11;
                        getfun(lingshilabel, ref xfrecordnumber, zsk, fd);
                        //读,计算展示框
                        int jyzxfqdrecordnumber = xfrecordnumber - 78 + 67 + (qlabel - 1) * 3 + 2; //获得记忆柱的前兴奋强
                        zsk = 8;
                        getfun(jyzxfqdrecordnumber, ref jyzxfqd, zsk, fd);
                        lingshilabel = xfrecordnumber - 78 + 76; //空间标志kjbz
                        getfun(lingshilabel, ref kjbz, zsk, fd);
                        wj.Write(" recordnumber xfrecordnumber jyzxfqd,{0},{1},{2},{3}", recordnumber, kjbz, xfrecordnumber, jyzxfqd);
                    }
                    wj.WriteLine(",,,,,主注意对象选择 ,{0}", labelnumber);
                    for (recordnumber = 1; recordnumber <= labelnumber; recordnumber++)
                    {
                        lingshilabel = labelrecordnumber + recordnumber;
                        zsk = 11;
                        getfun(lingshilabel, ref xfrecordnumber, zsk, fd);
                        //读,计算展示框
                        int jyzxfqdrecordnumber = xfrecordnumber - 78 + 67 + (qlabel - 1) * 3 + 2; //获得记忆柱的前兴奋强
                        zsk = 8;
                        getfun(jyzxfqdrecordnumber, ref jyzxfqd, zsk, fd);
                        zsk = 8;
                        lingshilabel = xfrecordnumber - 78 + 76; //空间标志kjbz
                        getfun(lingshilabel, ref kjbz, zsk, fd);
                        n = kjbz / 10; //n是中枢,m在一个中枢的clengthN位置
                        int m = kjbz % 10; //获得空间标志的个位整数
                        if (zzydx[n, m] < 1)
                        {
                            //表示记忆柱所在空间,还没有记录兴奋;
                            zss[n] = (zss[n]) + 1; //一个中枢所选择出来的记忆柱数
                            zsqd[n] = zsqd[n] + jyzxfqd; //中枢的兴奋强度
                            qdzzydx[n, m] = jyzxfqd; //clengthN位置的兴奋强度
                            zzydx[n, m] = xfrecordnumber;
                        }
                        //如果zzydx(n, m) >1,表示记忆柱所在空间,已有记录兴奋。这时需要比较。;
                        if (jyzxfqd > qdzzydx[n, m]) //这种情况是clengthN位置几个记忆柱的大小比较
                        {
                            //需要改写四个记录参数;
                            zss[n] = zss[n]; //一个clengthN位置只能有一个记忆柱被选择出来
                            zsqd[n] = zsqd[n] + jyzxfqd - qdzzydx[n, m];
                            qdzzydx[n, m] = jyzxfqd;
                            zzydx[n, m] = xfrecordnumber;
                        }
                    }
                    //获得主注意对象

                    int[] qdzzydxxz = new int[6];
                    for (n = 1; n <= 30; n++)
                    {
                        if (zss[n] >= 5)
                        {
                            //一个中枢必须有5个以上的被选择出来的记忆柱,才能在它那里产生主注意对象。;
                            //表示可能会有新的主注意对象会被选择出来。;
                            if (zzydxpjyzqd < zsqd[n] / zss[n])
                            {
                                zzydxpjyzqd = zsqd[n] / zss[n]; //选择出来的新的主注意对象所在的中枢。;
                                recordnumber = 0;
                                xz = n; ydjsbz = n;
                                for (int m = 1; m <= 9; m++) //获得主注意对象
                                {
                                    if (zzydx[n, m] > 1)
                                    {
                                        //表示zzydx[n, m) 是选择出来的,否则就为空。记入展示框。也可能有的clengthN位置没有记忆柱被兴奋,就小于1;
                                        recordnumber = (recordnumber) + 1;
                                        zsk = 3;
                                        lingshilabel = labelrecordnumber + recordnumber;
                                        lingshilabel1 = zzydx[n, m];
                                        wj.Write(" 获得主注意对象xz ,{0},{1},{2}", xz, zsk, lingshilabel1);
                                        zzydxqd[m] = zzydx[n, m];
                                        putfun(lingshilabel, lingshilabel1, zsk, fd);
                                        putfun(labelrecordnumber, recordnumber, zsk, fd);
                                    }
                                }
                            }
                        }
                    }
                }
            DistanceMeasurement1: ;
                # endregion //选择获得主注意对象

                # region //没有选择出主注意对象
                //如果没能选择出主注意对象,就是原来的主注意对象。;
                if (xz == 0)
                {
                    //如果没能选择出主注意对象,就是原来的主注意对象。;
                    zsk = 3;
                    zsk1 = 8;
                    getfun(qlabelrecordnumber, ref labelnumber, zsk, fd);
                    putfun(labelrecordnumber, labelnumber, zsk, fd);
                    for (recordnumber = 1; recordnumber <= labelnumber; recordnumber++)
                    {
                        lingshilabel = qlabelrecordnumber + recordnumber;
                        labelrecordnumber1 = 0;
                        getfun(lingshilabel, ref labelrecordnumber1, zsk, fd);
                        lingshilabel = labelrecordnumber + recordnumber;
                        putfun(lingshilabel, labelrecordnumber1, zsk, fd);
                        lingshilabel = labelrecordnumber1 - 78 + 76; //空间标志kjbz
                        getfun(lingshilabel, ref kjbz, zsk1, fd);
                        wj.Write(" xz没能选择出主注意对象kjbz ,{0},{1},{2},{3}", xz, recordnumber, kjbz, labelrecordnumber1);
                    }
                }
                # endregion //没有选择出主注意对象
                //   zzydxlabel主注意对象的标志
                # region //主注意对象的一些参数的设置
                zsk = 3;
                zsk1 = 8;
                /*if (biaozhi % 4 != 1)
                {
                    getfun(qlabelrecordnumber, ref labelnumber, zsk, fd);
                    zzydxlabel = 0;
                    for (recordnumber = 1; recordnumber <= labelnumber; recordnumber++)
                    {
                        lingshilabel = qlabelrecordnumber + recordnumber;
                        labelrecordnumber1 = 0;
                        getfun(lingshilabel, ref xfrecordnumber, zsk, fd);
                        lingshilabel1 = xfrecordnumber - 78 + 83;
                        putfun(lingshilabel1, zzydxlabel, zsk1, fd);
                        lingshilabel1 = lingshilabel1 - zrecordnumber;
                        putfun(lingshilabel1, zzydxlabel, zsk1, fd);

                    }
                }*/
                getfun(labelrecordnumber, ref labelnumber, zsk, fd);
                zzydxlabel = 1;                                 //zzydxlabel = 1;
                for (recordnumber = 1; recordnumber <= labelnumber; recordnumber++)
                {
                    lingshilabel = labelrecordnumber + recordnumber;
                    labelrecordnumber1 = 0;
                    getfun(lingshilabel, ref xfrecordnumber, zsk, fd);
                    if (xz > 0)
                    {
                        lingshilabel1 = xfrecordnumber - 78 + 83;
                        putfun(lingshilabel1, zzydxlabel, zsk1, fd);
                        lingshilabel1 = lingshilabel1 - zrecordnumber;
                        putfun(lingshilabel1, zzydxlabel, zsk1, fd);
                    }
                    //状态中枢的zzydxlabel
                    lingshilabel1 = xfrecordnumber - 78 + 87;
                    getfun(lingshilabel1, ref xfrecordnumber1, zsk1, fd);
                    lingshilabel1 = xfrecordnumber1 - 87 + 83;
                    zzydxlabel = 1;
                    putfun(lingshilabel1, zzydxlabel, zsk1, fd);
                    if (biaozhi % 4 == 2)
                    {
                        if (jcvalue < 11)
                        {
                            zj = 1;
                        }
                        if (jcvalue > 11)
                        {
                            zj = 2;
                        }
                        lingshilabel1 = lingshilabel1 + zj * 9600;
                        zzydxlabel = 1;
                        putfun(lingshilabel1, zzydxlabel, zsk1, fd);
                    }

                    //获得记忆柱的前兴奋强度
                    int jyzxfqdrecordnumber = xfrecordnumber - 78 + 67 + (qlabel - 1) * 3 + 2; //获得记忆柱的前兴奋强                                               
                    getfun(jyzxfqdrecordnumber, ref  xfqdrecordnumber, zsk1, fd);
                    lingshilabel = xfrecordnumber - 78 + 76; //空间标志kjbz
                    getfun(lingshilabel, ref kjbz, zsk1, fd);
                    int zsk2 = 19;  //局部扩布抑制
                    int nk = kjbz / 10;
                    int nk1 = kjbz % 10;
                    getfun(nk, ref arecordnumber, zsk2, fd);
                    if (biaozhi % 4 == 0) //成为主注意对象
                    {
                        for (int cwidthnn = 1; cwidthnn <= 4; cwidthnn++)
                        {
                            recordnumbern = arecordnumber + (nk1 - 1) * 2 * 9600 * 2 + (cwidthnn - 1) * 9600 + 9578;
                            int xfqdrecordnumbern = -100000; //传入的抑制强度
                            cjcr(qlabelrecordnumber, recordnumbern, xfqdrecordnumbern, zqtime, qzqtime, label, jyzxfqdlabel, jcvalue);
                        }
                    }
                }
                #endregion //主注意对象的一些参数的设置

                #region   //读取主要展示框,计算
                for (zsk = 1; zsk < 13; zsk++)
                {
                    #region //主注意目的对象的兴奋
                    //主注意对象所对应的状态中枢的记忆柱兴奋传出兴奋,记忆兴奋。;
                    //主注意目的对象的兴奋强度与其动力预期及其受到的易化有关。;
                    //int[,] zzymdxz = new int[6,9];
                    //int zzymdxzqd = new int[6]; //主注意目的对象的选择的参数
                    //zzydx[n, m], zzydxfqd,奖惩的增加值zjajctcxfqda是主注意对象的动力预期
                    if (zsk > 1) goto m7zsk; ;
                    int recordnumber1 = 1;
                    for (recordnumber = 1; recordnumber < 2; recordnumber++)
                    {
                        for (recordnumber1 = 1; recordnumber1 <= 9; recordnumber1++)
                        {
                            //实时的奖惩预期的改变较为复杂
                            xfrecordnumber = zzymdxz[recordnumber, recordnumber1];
                            //zzymdxzqd [ recordnumber ,9 ]
                            if (zzydxfqd == 0) goto m7zsk; ;
                            if (xfrecordnumber <= 0) goto m7zskk; ;
                            int xfqdrecordnumber1 = zzymdxzqd[recordnumber];
                            lingshilabel = xfrecordnumber - 78 + 76; //空间标志kjbz
                            zsk1 = 8;
                            getfun(lingshilabel, ref kjbz, zsk1, fd);
                            wj.Write(" 主注意目的对象kjbz xfrecordnumber xfqdrecordnumber1,{0},{1},{2}", kjbz, xfrecordnumber, xfqdrecordnumber1);

                            zsk1 = 8;
                            int lingshilabel1 = xfrecordnumber;
                            lingshilabel = xfrecordnumber - 78 + 87;
                            getfun(lingshilabel, ref xfrecordnumber, zsk1, fd);
                            xfrecordnumber = xfrecordnumber - 87 + 78;
                            lingshilabel = xfrecordnumber - 78 + 67 + (qlabel - 1) * 3 + 2;
                            getfun(lingshilabel, ref jyzxfqd, zsk1, fd);
                            if (jyzxfqd < 10) continue;
                            n = zzymdxzqd[recordnumber] / (2000 * 10); //奖惩预期强度除以平均奖惩预期强度
                            jyzxfqd = jyzxfqd * n;
                            //主注意目的对象在状态中枢的兴奋记忆与传出只传出不记忆;
                            int zjjyzxfqd = jyzxfqd;
                            jyzxfqdlabel = 200;
                            z = 3;
                            if (biaozhi % 4 != 1)
                            {
                                xfcc(xfrecordnumber, qlabel, subzrecordnumber, qzqtime, zrecordnumber, zqtime, zsk, label, z, jyzxfqdlabel, qdjlrecordnumber, jyzjcxfqd, zzymdxfqd, jcvalue, qdbz, tcxfyz);
                            }
                            z = 0;

                        m7zskk: ;
                        }
                    }
                    #endregion //主注意目的对象的兴奋
                m7zsk: ;
                    zzymdxfqd = 0;
                    if (zsk == 7)
                    {
                        goto m8zsk;
                    }
                    if (zsk == 8)
                    {
                        goto m8zsk;
                    }
                    if (zsk == 10)
                    {
                        goto m8zsk;
                    }
                    if (zsk == 11)
                    {
                        goto m8zsk;
                    }
                    if (zsk == 12)
                    {
                        goto m8zsk;
                    }
                    getfun(labelrecordnumber, ref labelnumber, zsk, fd);
                    for (recordnumber = 1; recordnumber <= labelnumber; recordnumber++)
                    {
                        #region //打印主注意对象
                        if (zsk == 3)
                        {
                            wj.Write(" xz zsk labelnumber主注意对象,{0},{1},{2}", xz, zsk, labelnumber);
                            wj.WriteLine("列出主注意对象 ,{0}", labelnumber);
                            lingshilabel = labelrecordnumber + recordnumber;
                            zsk = 3;
                            getfun(lingshilabel, ref xfrecordnumber, zsk, fd);
                            //读,计算展示框
                            int jyzxfqdrecordnumber = xfrecordnumber - 78 + 67 + (qlabel - 1) * 3 + 2; //获得记忆柱的前兴奋强
                            zsk = 8;
                            getfun(jyzxfqdrecordnumber, ref jyzxfqd, zsk, fd);
                            lingshilabel = xfrecordnumber - 78 + 76; //空间标志kjbz
                            getfun(lingshilabel, ref kjbz, zsk, fd);
                            wj.Write(" recordnumber kjbz xfrecordnumber jyzxfqd,{0},{1},{2},{3}", recordnumber, kjbz, xfrecordnumber, jyzxfqd);
                            zsk = 3;
                            wj.WriteLine("列出主注意对象 ,{0}", labelnumber);
                        }
                        #endregion //打印主注意对象
                        lingshilabel = labelrecordnumber + recordnumber;
                        getfun(lingshilabel, ref xfrecordnumber, zsk, fd);//读,计算展示框
                        switch (zsk) //zzymddx
                        {
                            //crcj感觉中枢的传入
                            case 2:
                                //传入记忆柱的位置及强度。位置表示什么类型的感觉传入,强度是感觉传入的强度;
                                xfqdrecordnumber = 6600;
                                /*jyzxfqdlabel = 200 * 5;
                                //是对不易兴奋的易化兴奋;
                                cjcr(qlabelrecordnumber, xfrecordnumber, xfqdrecordnumber, zqtime, qzqtime, label, jyzxfqdlabel, jcvalue);*/
                                jyzxfqdlabel = 100 * 5;
                                //是对易兴奋的易化兴奋;
                                xfrecordnumber = xfrecordnumber + 9600;
                                if (xfrecordnumber == 307178)
                                {
                                    int tqjy = 100;
                                }
                                cjcr(qlabelrecordnumber, xfrecordnumber, xfqdrecordnumber, zqtime, qzqtime, label, jyzxfqdlabel, jcvalue);
                                break;
                            //zzydx
                            case 3:
                                //主注意对象的动力,目的对象的动力共同作用。;
                                //getfun //获得状态中枢奖与惩的兴奋强度,进行整合,然后乘以,获得主的兴奋强度
                                //put //写入重新计算获得的奖惩的兴奋强度加主的五分之一
                                zsk1 = 8;
                                int lingshilabel1 = xfrecordnumber;
                                lingshilabel = xfrecordnumber - 78 + 67 + (qlabel - 1) * 3 + 2;
                                getfun(lingshilabel, ref jyzxfqd, zsk1, fd);
                                xfrecordnumber1 = xfrecordnumber - 9600;
                                jyzxfqd = 10 * jyzxfqd;
                                jyzxfqdlabel = 200 * 5;
                                z = 0;
                                xfcc(xfrecordnumber1, qlabel, subzrecordnumber, qzqtime, zrecordnumber, zqtime, zsk, label, z, jyzxfqdlabel, qdjlrecordnumber, jyzjcxfqd, zzymdxfqd, jcvalue, qdbz, tcxfyz);

                                /*//状态中枢的zzydxlabel
                                lingshilabel = xfrecordnumber - 78 + 87;
                                getfun(xfrecordnumber, ref xfrecordnumber1, zsk1, fd);
                                cjcr(qlabelrecordnumber, xfrecordnumber1, jyzxfqd, zqtime, qzqtime, label, jyzxfqdlabel, jcvalue);
                                //状态中枢的奖惩
                                if (jcvalue < 11)
                                {
                                    zj = 1;
                                }
                                if (jcvalue > 11)
                                {
                                    zj = 2;
                                }
                                lingshilabel = xfrecordnumber1 + zj * 9600;
                                jyzxfqd = 6000 * jcvalue;
                                cjcr(qlabelrecordnumber, lingshilabel, jyzxfqd, zqtime, qzqtime, label, jyzxfqdlabel, jcvalue);
                                //状态中枢的奖惩;*/

                                jyzxfqd = 2000 * 6 / zskk;
                                z = 0;
                                if (jyzxfqd >= 25) //易化皮质对应的基本记忆柱群。主注意对象对皮质不易兴奋的记忆柱的兴奋大于易兴奋的。
                                {
                                    jyzxfqdlabel = 150 * 5;
                                    cjcr(qlabelrecordnumber, xfrecordnumber, jyzxfqd, zqtime, qzqtime, label, jyzxfqdlabel, jcvalue);
                                    xfrecordnumber1 = xfrecordnumber - zrecordnumber;
                                    //zsk1 = 5;
                                    jyzxfqdlabel = 200 * 5;
                                    cjcr(qlabelrecordnumber, xfrecordnumber1, jyzxfqd, zqtime, qzqtime, label, jyzxfqdlabel, jcvalue);
                                }
                                if ((biaozhi - 1) % 4 >= 1)  //保证在下一主注意对象选择时能发发挥作用即可
                                {
                                    //状态中枢的
                                    lingshilabel = xfrecordnumber - 78 + 87;
                                    getfun(lingshilabel, ref xfrecordnumber1, zsk1, fd);
                                    xfrecordnumber1 = xfrecordnumber1 - 87 + 78;
                                    z = 3;
                                    jyzxfqdlabel = 150 * 5;
                                    cjcr(qlabelrecordnumber, xfrecordnumber1, jyzxfqd, zqtime, qzqtime, label, jyzxfqdlabel, jcvalue);
                                    xfcc(xfrecordnumber1, qlabel, subzrecordnumber, qzqtime, zrecordnumber, zqtime, zsk, label, z, jyzxfqdlabel, qdjlrecordnumber, jyzjcxfqd, zzymdxfqd, jcvalue, qdbz, tcxfyz);
                                    //状态中枢的奖惩
                                    if (jcvalue < 11)
                                    {
                                        zj = 1;
                                    }
                                    if (jcvalue > 11)
                                    {
                                        zj = 2;
                                    }
                                    xfrecordnumber1 = xfrecordnumber1 + zj * 9600;
                                    cjcr(qlabelrecordnumber, xfrecordnumber1, jyzxfqd, zqtime, qzqtime, label, jyzxfqdlabel, jcvalue);
                                    z = 0;
                                }

                                if (biaozhi % 4 == 0)
                                {
                                    lingshilabel = xfrecordnumber - 78 + 83;
                                    getfun(lingshilabel, ref zzydxlabel, zsk1, fd);
                                    zzydxlabel = 0;
                                    putfun(lingshilabel, zzydxlabel, zsk1, fd);
                                    lingshilabel = xfrecordnumber - 78 + 83 - zrecordnumber;
                                    getfun(lingshilabel, ref zzydxlabel, zsk1, fd);
                                    zzydxlabel = 2;
                                    putfun(lingshilabel, zzydxlabel, zsk1, fd);
                                    cjcr(qlabelrecordnumber, lingshilabel, jyzxfqd, zqtime, qzqtime, label, jyzxfqdlabel, jcvalue);
                                    //状态中枢的zzydxlabel
                                    lingshilabel = xfrecordnumber - 78 + 87;
                                    getfun(lingshilabel, ref xfrecordnumber1, zsk1, fd);
                                    lingshilabel1 = xfrecordnumber1 - 87 + 83;
                                    putfun(lingshilabel1, zzydxlabel, zsk1, fd);
                                    //状态中枢的奖惩
                                    if (jcvalue < 11)
                                    {
                                        zj = 1;
                                    }
                                    if (jcvalue > 11)
                                    {
                                        zj = 2;
                                    }
                                    lingshilabel = lingshilabel1 + zj * 9600;
                                    zzydxlabel = 0;
                                    putfun(lingshilabel, zzydxlabel, zsk1, fd);
                                    //状态中枢的奖惩
                                }
                                break;
                            case 4:
                                //1、与奖惩建立联系。2、顺序读取分类兴奋。
                                zsk1 = 8;
                                lingshilabel = xfrecordnumber - 78 + 67 + (qlabel - 1) * 3 + 2;
                                jyzxfqd = 0;
                                getfun(lingshilabel, ref jyzxfqd, zsk1, fd);
                                if (jyzxfqd < 100 * 5) continue;
                                tcxfqda = jyzxfqd;
                                n = 68; zsk3 = 19;
                                getfun(n, ref arecordnumber, zsk3, fd);
                                zj = ((xfrecordnumber - arecordnumber) / 9600) % 3;
                                jyzxfqdlabel = 100 * 5;
                                xfjy(xfrecordnumber, qlabel, subjyzrecordnumber, qzqtime, zrecordnumber, zqtime, jyzxfqdlabel, jcvalue);
                                //                                    zzydxlabel = 2;
                                int ztzszjyz = (((xfrecordnumber - arecordnumber) / 9600) / 3) * 3 * 9600 + arecordnumber;
                                lingshilabel1 = ztzszjyz + 9583;
                                getfun(lingshilabel1, ref zzydxlabel, zsk1, fd);
                                xfrecordnumber1 = lingshilabel1 + 78 - 83;
                                if (zj == 0)
                                {
                                    z = 3;
                                    jyzxfqdlabel = 100;
                                    xfcc(xfrecordnumber1, qlabel, subzrecordnumber, qzqtime, zrecordnumber, zqtime, zsk, label, z, jyzxfqdlabel, qdjlrecordnumber, jyzjcxfqd, zzymdxfqd, jcvalue, qdbz, tcxfyz);
                                    z = 0;
                                }

                                if (zzydxlabel == 2)
                                {
                                    xfqdrecordnumber = 1000;
                                    cjcr(qlabelrecordnumber, xfrecordnumber, xfqdrecordnumber, zqtime, qzqtime, label, jyzxfqdlabel, jcvalue);
                                    if (biaozhi % 4 == 3) //biaozhi % 4 == 3时能建立记忆联系就可以了。
                                    {
                                        zzydxlabel = 0;
                                        putfun(lingshilabel1, zzydxlabel, zsk1, fd);
                                    }
                                    z = 0;
                                }
                                if (zj == 0 & (biaozhi-1) % 4 >= 2) //主要意义是对选择主注意对象产生影响
                                {
                                    //getfun //获得状态中枢奖与惩的兴奋强度,进行整合,然后乘以,获得主的兴奋强度
                                    //put //写入重新计算获得的奖惩的兴奋强度加主的五分之一。
                                    lingshilabel = lingshilabel + 9600;
                                    jyzxfqd1 = 0;
                                    getfun(lingshilabel, ref jyzxfqd1, zsk1, fd);
                                    lingshilabel = lingshilabel + 9600;
                                    jyzxfqd2 = 0;
                                    getfun(lingshilabel, ref jyzxfqd2, zsk1, fd);
                                    jyzxfqd3 = jyzxfqd1 - jyzxfqd2;
                                    xfqdrecordnumber = jyzxfqd * jyzxfqd3 / (20 * jyzxfqdlabel);
                                    if (xfqdrecordnumber != 0) //易化皮质对应的基本记忆柱群。
                                    {
                                        zsk1 = 8;
                                        lingshilabel = xfrecordnumber - 78 + 87;
                                        getfun(lingshilabel, ref xfrecordnumber1, zsk1, fd);
                                        xfrecordnumber1 = xfrecordnumber1 - 87 + 78;
                                        int zjjyzxfqd = xfqdrecordnumber;
                                        xfrecordnumber1 = xfrecordnumber1 + zrecordnumber;
                                        xfqdrecordnumber = zjjyzxfqd;
                                        cjcr(qlabelrecordnumber, xfrecordnumber1, xfqdrecordnumber, zqtime, qzqtime, label, jyzxfqdlabel, jcvalue);
                                        jyzxfqdlabel = 200 * 5;
                                        lingshilabel = xfrecordnumber1 - 78 + 80;
                                        lingshilabel1 = xfrecordnumber1 - 78 + 76; //空间标志kjbz
                                        getfun(lingshilabel1, ref kjbz, zsk1, fd);
                                        getfun(lingshilabel, ref zslabel, zsk1, fd); //‘获得中枢标志clabel 

                                    }
                                }
                                zsk1 = 8;
                                lingshilabel = xfrecordnumber - 78 + 87;
                                getfun(lingshilabel, ref xfrecordnumber1, zsk1, fd);
                                xfrecordnumber1 = xfrecordnumber1 - 87 + 78 + 9600;
                                lingshilabel = xfrecordnumber1 - 78 + 80;
                                lingshilabel1 = xfrecordnumber1 - 78 + 76; //空间标志kjbz
                                getfun(lingshilabel1, ref kjbz, zsk1, fd);
                                getfun(lingshilabel, ref zslabel, zsk1, fd); //‘获得中枢标志clabel 
                                wj.Write(" recordnumber状态kjbz zzydxlabel,{0},{1},{2},{3},{4},{5},{6}", recordnumber, kjbz, xfrecordnumber, jyzxfqd, xfrecordnumber1, xfqdrecordnumber, zzydxlabel);
                                xfqdrecordnumber = 0;
                                break;
                            // xfby
                            case 5:
                                zsk1 = 8;
                                lingshilabel = xfrecordnumber - 78 + 67 + (qlabel - 1) * 3;
                                int tcxftime = 0;
                                getfun(lingshilabel, ref tcxftime, zsk1, fd);
                                lingshilabel = xfrecordnumber - 78 + 67 + (qlabel - 1) * 3 + 1;
                                int tcxfds = 0;
                                getfun(lingshilabel, ref tcxfds, zsk1, fd);
                                lingshilabel = xfrecordnumber - 78 + 67 + (qlabel - 1) * 3 + 2;
                                getfun(lingshilabel, ref tcxfqda, zsk1, fd);

                                //传出兴奋及记忆兴奋。传出到的记忆柱,分易兴奋的与不易兴奋的。;
                                jyzxfqdlabel = 200 * 5;
                                xfjy(xfrecordnumber, qlabel, subjyzrecordnumber, qzqtime, zrecordnumber, zqtime, jyzxfqdlabel, jcvalue);
                                xfcc(xfrecordnumber, qlabel, subzrecordnumber, qzqtime, zrecordnumber, zqtime, zsk, label, z, jyzxfqdlabel, qdjlrecordnumber, jyzjcxfqd, zzymdxfqd, jcvalue, qdbz, tcxfyz);
                                break;
                            //xfy
                            case 6:
                                zsk1 = 8;
                                lingshilabel = xfrecordnumber - 78 + 67 + (qlabel - 1) * 3;
                                tcxftime = 0;
                                getfun(lingshilabel, ref tcxftime, zsk1, fd);
                                lingshilabel = xfrecordnumber - 78 + 67 + (qlabel - 1) * 3 + 1;
                                tcxfds = 0;
                                getfun(lingshilabel, ref tcxfds, zsk1, fd);
                                lingshilabel = xfrecordnumber - 78 + 67 + (qlabel - 1) * 3 + 2;
                                getfun(lingshilabel, ref tcxfqda, zsk1, fd);
                                jyzxfqdlabel = 100 * 5;
                                xfjy(xfrecordnumber, qlabel, subjyzrecordnumber, qzqtime, zrecordnumber, zqtime, jyzxfqdlabel, jcvalue);
                                xfcc(xfrecordnumber, qlabel, subzrecordnumber, qzqtime, zrecordnumber, zqtime, zsk, label, z, jyzxfqdlabel, qdjlrecordnumber, jyzjcxfqd, zzymdxfqd, jcvalue, qdbz, tcxfyz);
                                break;
                        }
                    }
                m8zsk: ;
                }
                #endregion  //读取主要展示框计算

                //奖惩部分;
                //奖惩预期。主注意目的对象的动力预期不一定准确,关键是行为能与环境相适应就可以了,与环境相适应的动力预期,是长期的奖惩学习获得的。目的行为能带来什么,这便是目的行为的动力。设置了这些基本规则,通过文化学习,形成与规则和环境相适应的认知过程及习惯。;


                //奖惩预期。1获得兴奋的奖惩记忆柱13,2获得奖惩预期记忆柱13,3计算获得奖惩;
                //1获得兴奋的奖惩记忆柱;
                //主注意对象的奖惩预期大于目的对象的20%开始获得新的目的对象;
                //奖惩预期。1获得兴奋的奖惩记忆柱13,2获得奖惩预期记忆柱13,3计算获得奖惩;
                //1获得兴奋的奖惩记忆柱;
                #region //奖惩传到奖惩预期
                jrlabel = 0; zsk3 = 13;
                n = 15; zsk1 = 19; lingshilabel3 = 0;
                getfun(n, ref lingshilabel3, zsk1, fd);
                putfun(labelrecordnumber, jrlabel, zsk3, fd);
                for (n = 1; n <= 2; n++)
                {
                    getfun(labelrecordnumber, ref jrlabel, zsk3, fd);
                    xfrecordnumber = lingshilabel3 + (n - 1) * 9600 * 2 + 9578;
                    lingshilabel = jrlabel + 1;
                    putfun(labelrecordnumber, lingshilabel, zsk3, fd);
                    lingshilabel = labelrecordnumber + jrlabel + 1;
                    putfun(lingshilabel, xfrecordnumber, zsk3, fd);
                }
                lingshilabel = labelrecordnumber;
                getfun(lingshilabel, ref labelnumber, zsk3, fd);
                for (int recornumber = 1; recornumber <= labelnumber; recornumber++)
                {
                    //读,计算展示框
                    lingshilabel = labelrecordnumber + recornumber;
                    getfun(lingshilabel, ref xfrecordnumber, zsk3, fd);
                    zsk = 8;
                    lingshilabel1 = xfrecordnumber - 78 + 67 + (label - 1) * 3;
                    int jyzxftime = 0;
                    getfun(lingshilabel1, ref jyzxftime, zsk, fd);
                    if (jyzxftime == zqtime)
                    {
                        lingshilabel = xfrecordnumber - 78 + 67 + (label - 1) * 3 + 2;
                        getfun(lingshilabel, ref tcxfqda, zsk, fd);
                        if (tcxfqda < 25 * 5)
                        {
                            continue;
                        }
                    }
                    else
                    {
                        continue;
                    }
                    if (tcxfqda < 10 * 5) continue;
                    //兴奋获得的记忆柱,计算传出兴奋xfcc (, 对奖惩预期的影响等到下一兴奋周期。);
                    z = 1; //表示传出到奖惩预期中枢);
                    if ((xfrecordnumber / zrecordnumber) % 2 == 0)
                    {
                        jyzxfqdlabel = 200 * 5;
                    }
                    else
                    {
                        jyzxfqdlabel = 100 * 5;  //jyzjcxfqd
                    }
                    if (tcxfqda > 1000)
                    {
                        xfccc(xfrecordnumber, qlabel, subzrecordnumber, qzqtime, zrecordnumber, zqtime, zsk, label, z, jyzxfqdlabel, qdjlrecordnumber, jyzjcxfqd, zzymdxfqd, jcvalue, ref qdbz);
                    }
                    z = 0; //传到奖惩预期中枢结束);
                }
                #endregion //奖惩传到奖惩预期

                #region     //2获得兴奋的奖惩预期记忆柱;记入12
                zsk1 = 19; zsk3 = 12;
                lingshilabel3 = 0; jrlabel = 0;
                putfun(labelrecordnumber, jrlabel, zsk3, fd);
                for (int cf = 1; cf <= 2; cf++)
                {
                    for (int anumber = 1; anumber <= 9; anumber++)
                    {
                        opcheightn = 0; n = 30 + anumber + (cf - 1) * 10;
                        zhongjie = 0;
                        getfun(n, ref lingshilabel3, zsk1, fd);
                        for (clengthn = 1; clengthn <= 8; clengthn++)
                        {
                            for (int cwidthnn = 1; cwidthnn <= 2; cwidthnn++)
                            {
                                for (int yu = 1; yu <= 2; yu++) //易兴奋的与不易兴奋的都参与传出,2是易兴奋的,定位记忆柱
                                {
                                    xfrecordnumber = lingshilabel3 + (clengthn - 1) * 2 * 9600 * 2 + (cwidthnn - 1) * 9600 * 2 + (yu - 1) * 9600 + 9578;
                                    getfun(labelrecordnumber, ref jrlabel, zsk3, fd);
                                    lingshilabel = jrlabel + 1;
                                    putfun(labelrecordnumber, lingshilabel, zsk3, fd);
                                    lingshilabel = labelrecordnumber + jrlabel + 1;
                                    putfun(lingshilabel, xfrecordnumber, zsk3, fd);

                                }
                            }
                        }
                    }
                }
                #endregion     //2获得兴奋的奖惩预期记忆柱;

                #region //奖惩预期计算,及参数赋值
                int[] yqdyqjs = new int[10];
                int[] qdyqjs = new int[10]; zj = 0;
                int[] ycfqdyqjs = new int[10]; int yaacyqjscf = 0;
                zsk1 = 12; int yaacyqjs = 0;
                getfun(labelrecordnumber, ref labelnumber, zsk1, fd);
                if (labelnumber == 0)
                {
                    goto DistanceMeasurement0;
                }
                for (int recornumber = 1; recornumber <= labelnumber; recornumber++)
                {
                    lingshilabel = labelrecordnumber + recornumber;
                    zsk1 = 12;
                    getfun(lingshilabel, ref xfrecordnumber, zsk1, fd);
                    //读,计算展示框
                    //先获得是第几个记忆柱,然后是计算奖惩预期值;
                    //获得是第几个记忆柱.计算的是不易兴奋的记忆柱的兴奋
                    zsk1 = 8;
                    zsk = 8;
                    lingshilabel1 = xfrecordnumber - 78 + 67 + (label - 1) * 3;
                    int jyzxftime = 0;
                    getfun(lingshilabel1, ref jyzxftime, zsk, fd);
                    if (jyzxftime == zqtime)
                    {
                        lingshilabel = xfrecordnumber - 78 + 67 + (label - 1) * 3 + 2;
                        getfun(lingshilabel, ref tcxfqda, zsk, fd);
                    }
                    else
                    {
                        continue;
                    }
                    lingshilabel = xfrecordnumber - 78 + 75;
                    int yqqdjszlabel = 0;
                    getfun(lingshilabel, ref yqqdjszlabel, zsk1, fd);
                    int yqqdjs = tcxfqda;
                    int cf = yqqdjszlabel / 100;
                    int yu = (yqqdjszlabel - cf * 100) / 10;
                    int anumber = yqqdjszlabel % 10;
                    if (yu == 1)
                    {
                        if (cf == 1)
                        {
                            yqdyqjs[anumber] = yqqdjs; //随强度增加乘以anumber
                        }
                        if (cf == 2)
                        {
                            ycfqdyqjs[anumber] = yqqdjs;
                        }
                        yaacyqjs = yaacyqjs + yqdyqjs[anumber];
                        yaacyqjscf = yaacyqjscf + ycfqdyqjs[anumber];
                    }
                }
                int yaacyqjs1 = yaacyqjs; yaacyqjs = 0; int yaacyqjscf1 = yaacyqjscf;
                if (yaacyqjs1 > 1 | yaacyqjscf1 > 1)
                {
                    for (int anumber = 1; anumber <= 9; anumber++)
                    {
                        yaacyqjs = yaacyqjs + (anumber * yqdyqjs[anumber]);
                        yaacyqjscf = yaacyqjscf + anumber * ycfqdyqjs[anumber];
                        if (yqdyqjs[anumber] > 2)
                        {
                            zj = zj + 1;
                        }
                    }
                }
                yaacyqjs = yaacyqjs / (zj + 1) - yaacyqjscf;
                qyaacyqjs = qdmdjcyq * 90 / 100;
                qdmdjcyq = yaacyqjs; //主注意目的对象及主注意对象的动力预期值和也作为主注意目的对象的动力预期值
                //逃避惩罚,失去奖赏;
                //yaacyqjs (奖惩的值);
                //qyaacyqjs (上一次奖惩的值);
                int zjyaacyqjs = yaacyqjs - qyaacyqjs; //奖惩的增加值;
                //qzjajctcxfqda (//上一次奖惩的增加值);
                wj.WriteLine("yaacyqjs ,qyaacyqjs,{0},{1}", yaacyqjs, qyaacyqjs);
                //获得主注意目的对象
                zzydxfqd = qdmdjcyq;//主注意对象的动力。主注意目的对象有6组,每组对象有9个数字
                //从主展示框获得
                #endregion //奖惩预期计算
                #region //目的对象的动力计算
                if ((biaozhi % 4) >= 3)
                {
                    zsk = 3;
                    getfun(labelrecordnumber, ref labelnumber, zsk, fd);
                    for (recordnumber = 1; recordnumber <= labelnumber; recordnumber++)
                    {
                        lingshilabel = labelrecordnumber + recordnumber;
                        labelrecordnumber1 = 0;
                        getfun(lingshilabel, ref labelrecordnumber1, zsk, fd);
                        zzydxqd[recordnumber] = labelrecordnumber1;
                    }
                    for (recordnumber = 1; recordnumber <= 6; recordnumber++)
                    {
                        zzymdxzqd[recordnumber] = zzymdxzqd[recordnumber] * 80 / 100;  //主注意目的对象的动力衰减
                    }
                    for (recordnumber = 1; recordnumber <= 6; recordnumber++)
                    {
                        int recordnumber1 = 1;
                        if (zzydxfqd > zzymdxzqd[recordnumber])  //主注意对象的动力大于这一主注意目的对象的动力,主注意对象成为主注意目的对象,主注意目的对象的组成的排位要改变
                        {
                            for (recordnumber1 = 1; recordnumber1 <= 6 - recordnumber; recordnumber1++)  //改变过程
                            {
                                zzymdxzqd[7 - recordnumber1] = zzymdxzqd[6 - recordnumber1];
                                for (int m = 1; m <= 9; m++)
                                {
                                    zzymdxz[7 - recordnumber1, m] = zzymdxz[6 - recordnumber1, m];
                                }
                            }
                            zzymdxzqd[recordnumber] = zzydxfqd;
                            for (int m = 1; m <= 9; m++)
                            {
                                zzymdxz[recordnumber, m] = zzydxqd[m];
                            }
                            goto tiaochu;
                        }
                    }
                }
            tiaochu: ;
                //主注意对象都是9个。没有选择出来的都用0表示。
                //存入主展示框
                #endregion  //目的对象的动力计算

                if (biaozhi == 24)
                {
                    zsk = 3;
                    zsk1 = 8;
                    getfun(qlabelrecordnumber, ref labelnumber, zsk, fd);
                    zzydxlabel = 0;
                    for (recordnumber = 1; recordnumber <= labelnumber; recordnumber++)
                    {
                        lingshilabel = qlabelrecordnumber + recordnumber;
                        labelrecordnumber1 = 0;
                        getfun(lingshilabel, ref xfrecordnumber, zsk, fd);
                        lingshilabel1 = xfrecordnumber - 78 + 83;
                        putfun(lingshilabel1, zzydxlabel, zsk1, fd);
                        lingshilabel1 = lingshilabel1 - zrecordnumber;
                        putfun(lingshilabel1, zzydxlabel, zsk1, fd);
                    }
                    getfun(labelrecordnumber, ref labelnumber, zsk, fd);
                    zzydxlabel = 0;
                    for (recordnumber = 1; recordnumber <= labelnumber; recordnumber++)
                    {
                        lingshilabel = labelrecordnumber + recordnumber;
                        labelrecordnumber1 = 0;
                        getfun(lingshilabel, ref xfrecordnumber, zsk, fd);
                        lingshilabel1 = xfrecordnumber - 78 + 83;
                        putfun(lingshilabel1, zzydxlabel, zsk1, fd);
                        lingshilabel1 = lingshilabel1 - zrecordnumber;
                        putfun(lingshilabel1, zzydxlabel, zsk1, fd);
                    }
                    return;
                }
            DistanceMeasurement0: ;
            }
            #endregion  //12周期性计算
        }
        #endregion //1主程序

        //函数
        #region
        void getfun(int getdress, ref int outdate, int fdlabel, FileStream fd)  //通过地址获得数据
        {
            byte[] bydata = new byte[10]; //
            int byda; //
            fdlabelfun(fdlabel, ref fd);
            outdate = 0;
            getdress = (getdress - 1) * 10 + 1;
            fd.Seek(getdress, SeekOrigin.Begin);
            fd.Read(bydata, 0, 10);
            int m = bydata[0] / 10;
            for (int k = 1; k <= bydata[0] % 10; k++)
            {
                byda = bydata[k];
                outdate = outdate + byda * (int)Math.Pow(10, k - 1);
            }
            if (m == 1)
            {
                ; //
                outdate = -outdate;
            }
        }
        void putfun(int putdress, int indate, int fdlabel, FileStream fd) //通过地址记入数据
        {
            byte[] abydata = new byte[10]; //
            int inda = 0; int zhongjie = indate; int m = 2; int zhongjie1 = indate;
            fdlabelfun(fdlabel, ref fd);
            if (indate < 0)
            {
                m = 1; //
                zhongjie = -indate;
                zhongjie1 = -indate;
            }
            putdress = (putdress - 1) * 10 + 1;
            int k = 0;
            for (k = 1; k <= 10; k++)
            {
                if (zhongjie1 / (int)Math.Pow(10, k - 1) < 1 && k > 1)
                {
                    break;
                }
                else
                {
                    inda = zhongjie % 10;
                    abydata[k] = (byte)inda;
                }
                zhongjie = (zhongjie - zhongjie % 10) / 10;
            }
            abydata[0] = (byte)((k - 1) + m * 10);
            fd.Seek(putdress, SeekOrigin.Begin);
            fd.Write(abydata, 0, k);
        }

        public void tcjy(int dqjytime, ref int dqjyvalue, ref int jyvalue, int jyzxfqdlabel)
        {
            /*int dqjytime1 = 0;
            //600,300到450弱的奖赏,450到600强的奖赏与惩罚(主注意对象),还差50时遗忘加快,记忆减慢。150到300是不易兴奋前主注意对象对主注意对象易兴奋的兴奋

            if (jyvalue > 550)
            {
                //遗忘的较快。;
                jyvalue = jyvalue - dqjytime;
                if (jyvalue < 550)
                {
                    dqjytime1 = (550 - jyvalue) / 6;
                    jyvalue = 550;
                }
            }
            if (jyvalue > 450 & jyvalue <= 550)
            {
                if (dqjytime1 > 0)
                {
                    jyvalue = jyvalue - dqjytime1;
                }
                else
                {
                    jyvalue = jyvalue - dqjytime;
                }
                if (jyvalue < 450)
                {
                    dqjytime1 = (450 - jyvalue) / 3;
                    jyvalue = 450;
                }
            }
            if (jyvalue > 400 & jyvalue <= 450)
            {
                //遗忘的较快。;
                if (dqjytime1 > 0)
                {
                    jyvalue = jyvalue - dqjytime1;
                }
                else
                {
                    jyvalue = jyvalue - dqjytime;
                }
                if (jyvalue < 400)
                {
                    dqjytime1 = (400 - jyvalue) / 6;
                    jyvalue = 400; ;
                }
            }
            if (jyvalue > 300 & jyvalue <= 400)
            {
                if (dqjytime1 > 0)
                {
                    jyvalue = jyvalue - dqjytime1;
                }
                else
                {
                    jyvalue = jyvalue - dqjytime;
                }
                if (jyvalue < 300)
                {
                    dqjytime1 = (300 - jyvalue) / 3;
                    jyvalue = 300;
                }
            }
            if (jyvalue > 250 & jyvalue <= 300)
            {
                if (dqjytime1 > 0)
                {
                    jyvalue = jyvalue - dqjytime1;
                }
                else
                {
                    jyvalue = jyvalue - dqjytime;
                }
                if (jyvalue < 250)
                {
                    dqjytime1 = (250 - jyvalue) / 6;
                    jyvalue = 250;
                }
            }
            if (jyvalue <= 250)
            {
                jyvalue = jyvalue - dqjytime;
            }
            if (jyvalue <= 0)
            {
                jyvalue = 0;
            }*/
        }
        //如果是主注意对象之间的传入突触》300 ,弱的奖赏为300到450,强的为450到600。前主注意对象的传入是》150到450。弱奖赏是150到300,强的为300到450
        //600,300到450弱的奖赏,450到600强的奖赏与惩罚(主注意对象),还差50时遗忘加快,记忆减慢。150到300是不易兴奋前主注意对象对主注意对象易兴奋的兴奋

        //记忆柱兴奋后的记忆;   没有改
        public void xfjy(int xfrecordnumber, int qlabel, int subjyzrecordnumber, int qzqtime, int zrecordnumber, int zqtime, int jyzxfqdlabel, int jcvalue)
        {
            int zsk = 8; int tcxftime = 0; int tcxfds = 0; int tcxfqda = 0; int recordnumber = 0;
            int tcdqjy = 0; int dqjytime = 0; int tctime = 0; int tccqjy = 0;
            int lingshilabel = xfrecordnumber - 78 + 67 + (qlabel - 1) * 3;
            getfun(lingshilabel, ref  tcxftime, zsk, fd);
            lingshilabel = xfrecordnumber - 78 + 67 + (qlabel - 1) * 3 + 1;
            getfun(lingshilabel, ref  tcxfds, zsk, fd);
            lingshilabel = xfrecordnumber - 78 + 67 + (qlabel - 1) * 3 + 2;
            getfun(lingshilabel, ref  tcxfqda, zsk, fd);
            int zhongjie = tcxfqda / 8;
            if (tcxftime == qzqtime && tcxfds > 0)
            {
                for (int sjl = 1; sjl <= tcxfds; sjl++)
                {
                    lingshilabel = xfrecordnumber - 78 + 100 - zrecordnumber + subjyzrecordnumber * 4 + (subjyzrecordnumber * 2 - 100) / 2 * (qlabel - 1) + sjl;
                    getfun(lingshilabel, ref recordnumber, zsk, fd);
                    //qlabel兴奋所记录的那些突触的兴奋
                    //获取突触的兴奋强度tcxfqd,qjyzxfqdrecordnumber/tcxfqd获得本次tc需要加的强度,长期短期时间的改写与记录。
                    getfun(recordnumber, ref tctime, zsk, fd);
                    lingshilabel = recordnumber + subjyzrecordnumber;
                    getfun(lingshilabel, ref tcdqjy, zsk, fd);
                    lingshilabel = recordnumber + subjyzrecordnumber * 2;
                    getfun(lingshilabel, ref tccqjy, zsk, fd);
                    dqjytime = zqtime - tctime;
                    tcjy(dqjytime, ref tcdqjy, ref tccqjy, jyzxfqdlabel);

                    putfun(recordnumber, zqtime, zsk, fd);  //所在突的时间;
                    lingshilabel = recordnumber + subjyzrecordnumber;
                    putfun(lingshilabel, tcdqjy, zsk, fd);//所在突触的短期记忆);
                    lingshilabel = recordnumber + subjyzrecordnumber * 2;
                    putfun(lingshilabel, tccqjy, zsk, fd);  //长期记忆);
                }
            }
        }
        public void qdzh(ref int tcxfqda, ref int qdjlrecordnumber, ref int jyzjcxfqd, ref int qdbz)
        {
            if ((jyzjcxfqd) * 9 <= tcxfqda)
            {
                qdjlrecordnumber = 11111111; qdbz = 9;
            }
            if (jyzjcxfqd * 8 <= tcxfqda & tcxfqda < jyzjcxfqd * 9)
            {
                qdjlrecordnumber = 11111121; qdbz = 8;
            }
            if (jyzjcxfqd * 7 <= tcxfqda & tcxfqda < jyzjcxfqd * 8)
            {
                qdjlrecordnumber = 12111211; qdbz = 7;
            }
            if (jyzjcxfqd * 6 <= tcxfqda & tcxfqda < jyzjcxfqd * 7)
            {
                qdjlrecordnumber = 21112112; qdbz = 6;
            }
            if (jyzjcxfqd * 5 <= tcxfqda & tcxfqda < jyzjcxfqd * 6)
            {
                qdjlrecordnumber = 22221111; qdbz = 5;
            }
            if (jyzjcxfqd * 4 <= tcxfqda & tcxfqda < jyzjcxfqd * 5)
            {
                qdjlrecordnumber = 11112222; qdbz = 4;
            }
            if (jyzjcxfqd * 3 <= tcxfqda & tcxfqda < jyzjcxfqd * 4)
            {
                qdjlrecordnumber = 12222221; qdbz = 3;
            }
            if (jyzjcxfqd * 2 <= tcxfqda & tcxfqda < jyzjcxfqd * 3)
            {
                qdjlrecordnumber = 22222122; qdbz = 2;
            }
            if (0 <= tcxfqda & tcxfqda < jyzjcxfqd * 2)
            {
                qdjlrecordnumber = 22222222; qdbz = 1;
            }
        }
        //z = 1表示传出的是根据记忆柱的兴奋强度传出。;
        //zzymdxfqd 主注意目的目的兴奋强度 zzymdxfqd = 1, 是主注意目的对象的兴奋强度
        public void xfcc(int xfrecordnumber, int qlabel, int subzrecordnumber, int qzqtime, int zrecordnumber, int zqtime, int zsk, int label, int z, int jyzxfqdlabel, int qdjlrecordnumber, int jyzjcxfqd, int zzymdxfqd, int jcvalue, int qdbz, int tcxfyz)
        {
            int zsk1 = 8; int tccrqd = 0; int tcxftime = 0; int tcxfds = 0; int tcxfqda = 0; int cf = 0; int zzydxlabel = 0; int zj = 0;
            qlabelrecordnumber = (qlabel - 1) * 4000 + 1;
            int lingshilabel = xfrecordnumber - 78 + 67 + (qlabel - 1) * 3;
            getfun(lingshilabel, ref tcxftime, zsk1, fd);
            lingshilabel = xfrecordnumber - 78 + 67 + (qlabel - 1) * 3 + 1;
            getfun(lingshilabel, ref tcxfds, zsk1, fd);
            lingshilabel = xfrecordnumber - 78 + 67 + (qlabel - 1) * 3 + 2;
            getfun(lingshilabel, ref tcxfqda, zsk1, fd);
            int xfccrecordnumber = xfrecordnumber - 78 + 88;
            int ccds = 0;
            getfun(xfccrecordnumber, ref ccds, zsk1, fd);
            ccds = ccds - (xfrecordnumber - 9578 + 4800);
            int fjcvalue = jcvalue;
            int ccjl = 0; int cdtc = 0;
            if (z == 1)
            {
                //根据jyz的兴奋强度传出。;
                int opcheightn = 0;
                int zhongjie = 0;
                qdzh(ref tcxfqda, ref qdjlrecordnumber, ref jyzjcxfqd, ref  qdbz);
                for (int number = 1; number <= 8; number++)
                {
                    zhongjie = (opcheightn + zhongjie) * 10;
                    opcheightn = Convert.ToInt32(qdjlrecordnumber / (Math.Pow(10, (8 - number)))) - zhongjie; //顺序获得8个表示强弱的数字
                    zsk1 = 8;
                    lingshilabel = xfrecordnumber - 9578 + subzrecordnumber * 4 - 50 + (number - 1) * 2 + opcheightn;
                    getfun(lingshilabel, ref cdtc, zsk1, fd);
                    int xfqdrecordnumber = tcxfqda;
                    jyzxfqdlabel = 200 * 5;
                    cjcr(qlabelrecordnumber, cdtc, xfqdrecordnumber, zqtime, qzqtime, label, jyzxfqdlabel, fjcvalue);
                }
                zhongjie = 0;
            }
            else
            {
                //根据记录的recordnumber顺序直接传出。;
                zsk1 = 8;
                getfun(xfccrecordnumber, ref ccjl, zsk1, fd);
                ccjl = ccjl - (xfrecordnumber - 9578 + 4800);
                lingshilabel = xfrecordnumber - 78 + 80;
                getfun(lingshilabel, ref cf, zsk1, fd);
                lingshilabel = xfrecordnumber - 78 + 83;
                getfun(lingshilabel, ref zzydxlabel, zsk1, fd);
                tccrqd = tcxfqda / 38;
                if (zzydxlabel == 1)
                {
                    tccrqd = tcxfqda / 20;
                    jyzxfqdlabel = jyzxfqdlabel * 3;
                }
                if (zzydxlabel == 2)
                {
                    tccrqd = tcxfqda / 28;
                    jyzxfqdlabel = 1200;
                    if (z == 3)
                    {
                        jyzxfqdlabel = 800;
                    }
                    //zzydxlabel == 2记忆建立后要及时归零

                }
                for (int cc = 1; cc <= ccjl; cc++)
                {
                    zsk1 = 8;
                    lingshilabel = xfrecordnumber - 9578 + subzrecordnumber * 3 + cc;
                    getfun(lingshilabel, ref cdtc, zsk1, fd);
                    //传出到记忆柱的突触n= ,21,32428800 n= ,22,32601600
                    cdtcsub(cdtc, tccrqd, zrecordnumber, subzrecordnumber, qzqtime, label, zsk, qlabelrecordnumber, zqtime, jyzxfqdlabel, tcxfyz, tcxfqda, tcxfds, fjcvalue);
                    if (z == 3)
                    {
                        if (jcvalue < 11)
                        {
                            zj = 1;
                        }
                        if (jcvalue > 11)
                        {
                            zj = 2;
                        }
                        cdtc = cdtc + zj * 9600;
                        //传出到记忆柱的突触
                        cdtcsub(cdtc, tccrqd, zrecordnumber, subzrecordnumber, qzqtime, label, zsk, qlabelrecordnumber, zqtime, jyzxfqdlabel, tcxfyz, tcxfqda, tcxfds, jcvalue);
                    }
                }
            }
        }

        //z = 1表示传出的是根据记忆柱的兴奋强度传出。;
        //zzymdxfqd 主注意目的目的兴奋强度 zzymdxfqd = 1, 是主注意目的对象的兴奋强度
        public void xfccc(int xfrecordnumber, int qlabel, int subzrecordnumber, int qzqtime, int zrecordnumber, int zqtime, int zsk, int label, int z, int jyzxfqdlabel, int qdjlrecordnumber, int jyzjcxfqd, int zzymdxfqd, int jcvalue, ref int qdbz)
        {
            StreamWriter wj = new StreamWriter(hd);
            int zsk1 = 8; int tccrqd = 0; int tcxftime = 0; int tcxfds = 0; int tcxfqda = 0; int cf = 0; int n = 0; int zzydxlabel = 0; int zj = 0;
            qlabelrecordnumber = (qlabel - 1) * 4000 + 1;
            int lingshilabel = xfrecordnumber - 78 + 67 + (label - 1) * 3;
            getfun(lingshilabel, ref tcxftime, zsk1, fd);
            lingshilabel = xfrecordnumber - 78 + 67 + (label - 1) * 3 + 1;
            getfun(lingshilabel, ref tcxfds, zsk1, fd);
            lingshilabel = xfrecordnumber - 78 + 67 + (label - 1) * 3 + 2;
            getfun(lingshilabel, ref tcxfqda, zsk1, fd);
            int xfccrecordnumber = xfrecordnumber - 78 + 88;
            int ccds = 0;
            getfun(xfccrecordnumber, ref ccds, zsk1, fd);
            ccds = ccds - (xfrecordnumber - 9578 + 4800);
            if (zsk == 13)
            {
                tccrqd = 3 * tccrqd; //从奖惩中枢传到奖惩预期中枢的兴奋能力更强。
            }
            if (zzymdxfqd == 1)
            {
                tccrqd = jyzjcxfqd;
            }
            int ccjl = 0; int cdtc = 0;
            if (z == 1)
            {
                //根据jyz的兴奋强度传出。;
                int opcheightn = 0;
                int zhongjie = 0;
                qdzh(ref tcxfqda, ref qdjlrecordnumber, ref jyzjcxfqd, ref  qdbz);
                for (int number = 1; number <= 8; number++)
                {
                    zhongjie = (opcheightn + zhongjie) * 10;
                    opcheightn = Convert.ToInt32(qdjlrecordnumber / (Math.Pow(10, (8 - number)))) - zhongjie; //顺序获得8个表示强弱的数字
                    zsk1 = 8;

                    if (jcvalue < 10)
                    {
                        tccrqd = jyzjcxfqd;
                        n = 30 + qdbz; zsk = 19;  // 31到39奖赏
                    }
                    if (jcvalue > 10)
                    {
                        tccrqd = jyzjcxfqd;
                        n = 40 + qdbz; zsk = 19;  // 41到49奖赏
                    }
                    getfun(n, ref lingshilabel, zsk, fd);
                    cdtc = lingshilabel + 9578 + (number - 1) * 2 * 9600 * 2 + (opcheightn - 1) * 9600 * 2;
                    zzydxlabel = 3;
                    lingshilabel1 = cdtc - 78 + 83;
                    putfun(lingshilabel1, zzydxlabel, zsk1, fd);
                    lingshilabel1 = cdtc - zrecordnumber;
                    putfun(lingshilabel1, zzydxlabel, zsk1, fd);
                    int xfqdrecordnumber = tcxfqda * jcvalue;
                    jyzxfqdlabel = 100 * 5 * 3;
                    cjcr(qlabelrecordnumber, cdtc, xfqdrecordnumber, zqtime, qzqtime, label, jyzxfqdlabel, jcvalue);
                    cdtc = cdtc - zrecordnumber;
                    xfqdrecordnumber = tcxfqda * jcvalue;
                    jyzxfqdlabel = 200 * 5 * 3;
                    cjcr(qlabelrecordnumber, cdtc, xfqdrecordnumber, zqtime, qzqtime, label, jyzxfqdlabel, jcvalue);
                }
                zhongjie = 0;
            }
            else
            {
                //根据记录的recordnumber顺序直接传出。;
                zsk1 = 8;
                getfun(xfccrecordnumber, ref ccjl, zsk1, fd);
                ccjl = ccjl - (xfrecordnumber - 9578 + 4800);
                lingshilabel = xfrecordnumber - 78 + 80;
                getfun(lingshilabel, ref cf, zsk1, fd);

                for (int cc = 1; cc <= ccjl; cc++)
                {
                    zsk1 = 8;
                    lingshilabel = xfrecordnumber - 9578 + subzrecordnumber * 3 + cc;
                    getfun(lingshilabel, ref cdtc, zsk1, fd);
                    //传出到记忆柱的突触
                    tccrqd = tcxfqda / 50;

                    cdtcsub(cdtc, tccrqd, zrecordnumber, subzrecordnumber, qzqtime, label, zsk, qlabelrecordnumber, zqtime, jyzxfqdlabel, tcxfyz, tcxfqda, tcxfds, jcvalue);
                    if (z == 3)
                    {
                        if (jcvalue < 11)
                        {
                            zj = 1;
                        }
                        if (jcvalue > 11)
                        {
                            zj = 2;
                        }
                        cdtc = cdtc + zj * 9600;
                        //传出到记忆柱的突触
                        cdtcsub(cdtc, tccrqd, zrecordnumber, subzrecordnumber, qzqtime, label, zsk, qlabelrecordnumber, zqtime, jyzxfqdlabel, tcxfyz, tcxfqda, tcxfds, jcvalue);
                    }
                }
            }
        }

        //zsk是突触所在记忆柱兴奋后所记入的展示框。;
        //记忆柱兴奋后传出兴奋,传到另一个记忆柱的突触,会产生一系列的计算:突触的兴奋强度与记忆的计算,兴奋了的突触要记录在段(drecordnumber) 中。这个传入的兴奋强度是纤维兴奋的强度与突触相互作用后的强度。;
        //z表示传到奖惩预期中枢  没有修改
        public void cdtcsub(int cdtc, int tccrqd, int zrecordnumber, int subzrecordnumber, int qztime, int label, int zsk, int qlabelrecordnumber, int zqtime, int jyzxfqdlabel, int tcxfyz, int tcxfqda, int tcxfds, int jcvalue)
        {
            int qjyzxftime = 0; int qjyzxfqd = 0; int qzjyzxftime = 0; int zjyzxftime = 0; int qjyzxfds = 0; int jyzxfqd = 0; int jyzxftime = 0; int zzydxlabel = 0;
            int tcxftime = 0; int tcjytime; int lingshilabel = 0; int jyzxfds = 0;
            int tcdqjy = 0; int tctime = 0; int tccqjy = 0; int xfqdrecordnumber = 0; int qxfjyzxftimerecordnumber = 0; int zsk1 = 8;
            StreamWriter wj = new StreamWriter(hd); int qlabeltime = 0; int leiji = 0; int bz = 0;
            //传出到记忆柱的突触
            //获得突触所在的记忆柱tcszjyz
            int tcszjyz = (cdtc / zrecordnumber) * zrecordnumber;
            int xfrecordnumber = tcszjyz + zrecordnumber - 100 + 78;
            zsk = 8;
            int cdtc1 = cdtc + 1 * subzrecordnumber;
            int cdtc2 = cdtc + 2 * subzrecordnumber;
            getfun(cdtc2, ref tccqjy, zsk, fd);
            getfun(cdtc, ref tctime, zsk, fd);
            getfun(cdtc1, ref tcdqjy, zsk, fd);
            tcjytime = (zqtime - tctime); //以10毫秒为单位。;
            //tcjytime = tcjytime / 100000;
            tcjy(tcjytime, ref tcdqjy, ref tccqjy, jyzxfqdlabel); //计算突触的遗忘 //计算遗忘后新的长短期记忆;383978
            //主注意对象同时兴奋,易兴奋的记忆柱的兴奋记忆联系
            lingshilabel = xfrecordnumber - 78 + 83;
            getfun(lingshilabel, ref zzydxlabel, zsk1, fd);
            if (xfrecordnumber == 383978 & zzydxlabel == 1 & jyzxfqdlabel == 1200)
            {
                int ccqjy = 300;
            }
            if (zzydxlabel == 1 & jyzxfqdlabel == 1500 & tcszjyz / zrecordnumber % 2 == 1)
            {
                /*if (jcvalue == 1 | jcvalue == 12)
                {
                    if (tccqjy < 350)
                    {
                        tccqjy = 350;460778
                    }
                }
                if (jcvalue == 7)
                {
                    if (tccqjy < 450)
                    {
                        tccqjy = 450;
                    }
                }*/
                tccqjy = 450;
            }
            if (zzydxlabel == 1 & jyzxfqdlabel == 3000)
            {
                /*if (jcvalue == 1 | jcvalue == 12)
                {
                    if (tccqjy < 350)
                    {
                        tccqjy = 350;
                    }
                }
                if (jcvalue == 7)
                {
                    if (tccqjy < 450)
                    {
                        tccqjy = 450;
                    }
                }*/
                tccqjy = 450;
            }
            //状态中枢建立记忆联系。前一主注意对象与
            if (zzydxlabel == 1 & jyzxfqdlabel == 800)
            {
                if (jcvalue == 1 | jcvalue == 12)
                {
                    if (tccqjy < 160)
                    {
                        tccqjy = 160;
                    }
                    tccrqd = tccrqd;
                }
                if (jcvalue == 7)
                {
                    if (tccqjy < 680)
                    {
                        tccqjy = 680;
                    }
                    tccrqd = 3 * tccrqd;
                }
                bz = 8;
            }


            //主注意对象易兴奋的与前一主注意对象的不易兴奋的记忆联系
            if (zzydxlabel == 1 & jyzxfqdlabel == 1200 & tcszjyz / zrecordnumber % 2 == 1)
            {
                /*if (jcvalue == 1 | jcvalue == 12)
                {
                    if (tccqjy < 350)
                    {
                        tccqjy = 350;
                    }
                }
                if (jcvalue == 7)
                {
                    if (tccqjy < 300)
                    {
                        tccqjy = 300;
                    }
                }*/
                tccqjy = 300;
                bz = 8;
            }
            putfun(cdtc2, tccqjy, zsk, fd);  //记忆);cdtc2, ref tccqjy, zsk, fd兴奋记忆时再重写
            xfqdrecordnumber = tccqjy + tccrqd; //cdtc2 = 339202
            tcxftime = tctime;
            int jyzxftimerecordnumber = xfrecordnumber - 78 + 67 + (label - 1) * 3; //记忆柱被易化的时间,但不一定被兴奋;
            getfun(jyzxftimerecordnumber, ref jyzxftime, zsk, fd);
            int xfjyzxftimerecordnumber = xfrecordnumber - 78 + 73 + (label - 1); //’记忆柱被兴奋的时间
            qxfjyzxftimerecordnumber = xfrecordnumber - 78 + 73 + Math.Abs(label - 2);
            getfun(xfjyzxftimerecordnumber, ref zjyzxftime, zsk, fd);
            getfun(qxfjyzxftimerecordnumber, ref qzjyzxftime, zsk, fd);
            if (zzydxlabel == 5)
            {
                bz = 8;
            }
            if (zzydxlabel == 2)
            {
                bz = 8;
            }
            if (tccqjy >= 150 & tccrqd >= 80 | bz == 8) // 有较强的记忆或者正处 于兴奋的记忆柱的突的兴奋记忆
            {
                //主要是修改记忆柱的一些总的参数,没有兴奋后记入展示框,随后根据易与不易来记入;
                int qjyzxftimerecordnumber = xfrecordnumber - 78 + 67 + Math.Abs(label - 2) * 3;
                int jyzxfdsrecordnumber = xfrecordnumber - 78 + 67 + (label - 1) * 3 + 1;
                int qjyzxfdsrecordnumber = xfrecordnumber - 78 + 67 + Math.Abs(label - 2) * 3 + 1;
                int jyzxfqdrecordnumber = xfrecordnumber - 78 + 67 + (label - 1) * 3 + 2;
                int qjyzxfqdrecordnumber = xfrecordnumber - 78 + 67 + Math.Abs(label - 2) * 3 + 2;
                zsk = 8;
                getfun(qjyzxftimerecordnumber, ref qjyzxftime, zsk, fd);
                getfun(jyzxftimerecordnumber, ref jyzxftime, zsk, fd);
                getfun(jyzxfqdrecordnumber, ref jyzxfqd, zsk, fd);
                getfun(qjyzxfqdrecordnumber, ref qjyzxfqd, zsk, fd);
                getfun(jyzxfdsrecordnumber, ref jyzxfds, zsk, fd);
                getfun(qjyzxfdsrecordnumber, ref qjyzxfds, zsk, fd);

                //本兴奋周期,这一记忆柱还没有被易化兴奋过。;
                int jyzxftim = 0;
                if (jyzxftime < zqtime) //‘本兴奋周期,这一记忆柱还没有被易化过jyzxfds = 1;。
                {
                    if (qzjyzxftime == qztime)
                    {
                        //前一兴奋周期它被选择兴奋,这一兴奋周期它正在兴奋。;xfqdrecordnumber传入突触的兴奋强度
                        int qlabeltimerecordnumber = xfrecordnumber - 78 + 85;
                        getfun(qlabeltimerecordnumber, ref qlabeltime, zsk, fd);
                        lingshilabel = xfrecordnumber - 78 + 83;
                        getfun(lingshilabel, ref zzydxlabel, zsk, fd);
                        if (qlabeltime > 0)  //表示已经成为主注意对象
                        {
                            qlabeltime = qlabeltime + 1;
                        }
                        if (zzydxlabel == 1 & qlabeltime < 1) //成为主注意对象
                        {
                            qlabeltime = 1;
                        }
                        if (qlabeltime == 3 & tcszjyz / zrecordnumber % 2 == 1) //易兴奋的主注意对象从第二个biaozhi开始qlabeltime + 1=1,
                        {
                            qlabeltime = 0;
                        }
                        if (qlabeltime == 7 & tcszjyz / zrecordnumber % 2 == 0) //不易兴奋的主注意对象从第三个biaozhi开始qlabeltime=1,
                        {
                            qlabeltime = 0;
                        }

                        putfun(qlabeltimerecordnumber, qlabeltime, zsk, fd);
                        int jia = xfqdrecordnumber;
                        jyzxfqd = jia;
                        if (zzydxlabel == 2 & tcszjyz / zrecordnumber % 2 == 0) //前一兴奋周期是主注意对象。不易兴奋的记忆柱wwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
                        {
                            jyzxfqd = qjyzxfqd / 3 + jia; //不是主注意对象
                        }
                        xfsj(jyzxfqd, jcvalue);
                        jyzxftim = zqtime;
                        if (cdtc % 9600 > 5000) //不是突触传入
                        {
                            jyzxfds = 0;
                        }
                        else
                        {
                            jyzxfds = 1;
                            leiji = leiji + 1;
                        }
                    }
                    if (qzjyzxftime < qztime | qzjyzxftime > qztime)
                    {
                        //前一兴奋周期它没有兴奋。;
                        int qlabeltimerecordnumber = xfrecordnumber - 78 + 85;
                        qlabeltime = 0;
                        putfun(qlabeltimerecordnumber, qlabeltime, zsk, fd);
                        jyzxfqd = xfqdrecordnumber;
                        jyzxftim = zqtime;
                        if (cdtc % 9600 > 5000) //不是突触传入
                        {
                            jyzxfds = 0;
                        }
                        else
                        {
                            jyzxfds = 1;
                            leiji = leiji + 1;
                        }
                    }
                    putfun(jyzxftimerecordnumber, jyzxftim, zsk, fd);
                    putfun(jyzxfdsrecordnumber, jyzxfds, zsk, fd);
                    putfun(jyzxfqdrecordnumber, jyzxfqd, zsk, fd);
                }
                if (jyzxftime == zqtime)
                {
                    if (qzjyzxftime == qztime)
                    {
                        //这种情况下,这一刻这个记忆柱的传入易化不是第一次。前一周期它兴奋
                        if (cdtc % 9600 < 5000) //是突触传入
                        {
                            jyzxfds = jyzxfds + 1;
                            leiji = leiji + 1;
                        }
                        int jia = Convert.ToInt32((xfqdrecordnumber));
                        jyzxfqd = jyzxfqd + jia;
                        xfsj(jyzxfqd, jcvalue);
                        putfun(jyzxfdsrecordnumber, jyzxfds, zsk, fd);
                        putfun(jyzxfqdrecordnumber, jyzxfqd, zsk, fd);
                    }
                    if (qzjyzxftime < qztime | qzjyzxftime > qztime)
                    {
                        //这种情况下,这一刻这个记忆柱的传入易化不是第一次。前一周期它没有兴奋。
                        if (cdtc % 9600 < 5000) //是突触传入
                        {
                            jyzxfds = jyzxfds + 1;
                            leiji = leiji + 1;
                        }
                        int jia = Convert.ToInt32((xfqdrecordnumber));
                        jyzxfqd = jyzxfqd + jia;
                        xfsj(jyzxfqd, jcvalue);
                        putfun(jyzxfdsrecordnumber, jyzxfds, zsk, fd);
                        putfun(jyzxfqdrecordnumber, jyzxfqd, zsk, fd);
                    }
                }
                //记入记忆柱的段
                if (cdtc % 9600 < 5000)
                {
                    lingshilabel = tcszjyz + (subzrecordnumber) * 4 + (label - 1) * 1550 + jyzxfds;
                    putfun(lingshilabel, cdtc, zsk, fd);
                    if (xfrecordnumber == 0)
                    {
                        wj.WriteLine("xfrecordnumber归------ ,{0},{1}", xfrecordnumber, lingshilabel);
                    }
                    if (leiji > 1)
                    {
                        wj.WriteLine("xfrecordnumber归------ ,{0},{1}", xfrecordnumber, lingshilabel);
                    }
                }
                //记忆柱没有记录入过展示框的情况。(需要专门的sub);
                if (zjyzxftime < zqtime && jyzxfqd >= 1000)
                {
                    //分易兴奋的与不易兴奋的记忆柱。;
                    if (zzydxlabel == 2)
                    {
                        int tcqjy = 100;
                    }
                    int xfrecordnumber1 = (xfrecordnumber / 9600) * 9600 + 9578;
                    int n1 = xfrecordnumber1 - 9578 + 9580;
                    int n = 68; zsk = 19;  //状态中枢
                    getfun(n, ref lingshilabel, zsk, fd);
                    zsk = 8;
                    getfun(n1, ref lingshilabel1, zsk, fd);
                    putfun(xfjyzxftimerecordnumber, zqtime, zsk, fd);//记录兴奋的时间
                    if (xfjyzxftimerecordnumber < lingshilabel)
                    {
                        int ht = xfjyzxftimerecordnumber / 9600 % 2;
                        if (xfrecordnumber == 326378)
                        {
                            tccqjy = 100;
                        }
                        if (ht == 0)
                            zsk = 5;
                        else
                            zsk = 6;
                        jrzsk(zsk, qlabelrecordnumber, xfrecordnumber1, zqtime, label);
                    }
                    if (xfjyzxftimerecordnumber > lingshilabel && ((xfjyzxftimerecordnumber - lingshilabel) / 9600) % 3 == 0)
                    {
                        zsk = 4;
                        jrzsk(zsk, qlabelrecordnumber, xfrecordnumber1, zqtime, label);
                    }
                }
            }
        }


        // 没有修改
        public void cjcr(int qlabelrecordnumber, int xfrecordnumber, int xfqdrecordnumber, int zqtime, int qzqtime, int label, int jyzxfqdlabel, int jcvalue)
        {
            int qjyzxftime = 0; int qjyzxfqd = 0; int qzjyzxftime = 0; int zjyzxftime = 0; int qjyzxfds = 0; int jyzxfqd = 0; int jyzxftime = 0;
            int lingshilabel = 0; int jyzxfds = 0; int zsk = 8; int leiji = 0;
            int qxfjyzxftimerecordnumber = 0; int qlabeltime = 0; int zzydxlabel = 1;
            //主要是修改记忆柱的一些总的参数,没有兴奋后记入展示框,随后根据易与不易来记入;
            int zjxfrecordnumber = (xfrecordnumber / 9600) * 9600 + 9567;
            int jyzxftimerecordnumber = zjxfrecordnumber + (label - 1) * 3; //记忆柱被易化的时间,但不一定被兴奋;
            int qjyzxftimerecordnumber = zjxfrecordnumber + Math.Abs(label - 2) * 3;
            int jyzxfdsrecordnumber = zjxfrecordnumber + (label - 1) * 3 + 1;
            int qjyzxfdsrecordnumber = zjxfrecordnumber + Math.Abs(label - 2) * 3 + 1;
            int jyzxfqdrecordnumber = zjxfrecordnumber + (label - 1) * 3 + 2;
            int qjyzxfqdrecordnumber = zjxfrecordnumber + Math.Abs(label - 2) * 3 + 2;
            int xfjyzxftimerecordnumber = zjxfrecordnumber - 67 + 73 + (label - 1); //’记忆柱被兴奋的时间
            qxfjyzxftimerecordnumber = zjxfrecordnumber - 67 + 73 + Math.Abs(label - 2);
            zsk = 8;
            getfun(qjyzxftimerecordnumber, ref qjyzxftime, zsk, fd);
            getfun(jyzxftimerecordnumber, ref jyzxftime, zsk, fd);
            getfun(jyzxfqdrecordnumber, ref jyzxfqd, zsk, fd);
            getfun(qjyzxfqdrecordnumber, ref qjyzxfqd, zsk, fd);
            getfun(jyzxfdsrecordnumber, ref jyzxfds, zsk, fd);
            getfun(qjyzxfdsrecordnumber, ref qjyzxfds, zsk, fd);
            getfun(xfjyzxftimerecordnumber, ref zjyzxftime, zsk, fd);
            getfun(qxfjyzxftimerecordnumber, ref qzjyzxftime, zsk, fd);
            //本兴奋周期,这一记忆柱还没有被易化兴奋过。;

            int jia = xfqdrecordnumber;
            int jyzxftim = 0; int qztime = qzqtime;
            if (jyzxftime < zqtime) //‘本兴奋周期,这一记忆柱还没有被易化过jyzxfds = 1;。
            {
                if (qzjyzxftime == qztime)
                {
                    //前一兴奋周期它被选择兴奋,这一兴奋周期它正在兴奋。;xfqdrecordnumber传入突触的兴奋强度
                    int qlabeltimerecordnumber = xfrecordnumber - 78 + 85;
                    getfun(qlabeltimerecordnumber, ref qlabeltime, zsk, fd);
                    lingshilabel = xfrecordnumber - 78 + 83;
                    getfun(lingshilabel, ref zzydxlabel, zsk, fd);
                    if (qlabeltime > 0)  //表示已经成为主注意对象
                    {
                        qlabeltime = qlabeltime + 1;
                    }
                    if (zzydxlabel == 1 & qlabeltime < 1) //成为主注意对象
                    {
                        qlabeltime = 1;
                    }
                    if (qlabeltime == 3 & xfrecordnumber / 9600 % 2 == 1) //易兴奋的主注意对象从第二个biaozhi开始qlabeltime=1,
                    {
                        qlabeltime = 0;
                    }
                    if (qlabeltime == 7 & xfrecordnumber / 9600 % 2 == 0) //不易兴奋的主注意对象从第三个biaozhi开始qlabeltime=1,
                    {
                        qlabeltime = 0;
                    }
                    putfun(qlabeltimerecordnumber, qlabeltime, zsk, fd);
                    if (xfqdrecordnumber >= 0)
                    {
                        jia = xfqdrecordnumber;
                        jyzxfqd = jia;
                        if (zzydxlabel == 2 & xfrecordnumber / 9600 % 2 == 0) //成为主注意对象
                        {
                            jyzxfqd = qjyzxfqd / 3 + jia; //不是主注意对象
                        }
                        xfsj(jyzxfqd, jcvalue);
                    }
                    if (xfqdrecordnumber < 0)
                    {
                        jia = xfqdrecordnumber;
                        jyzxfqd = jia;
                        if (zzydxlabel == 2 & xfrecordnumber / 9600 % 2 == 0) //成为主注意对象
                        {
                            jyzxfqd = qjyzxfqd / 3 + jia; //不是主注意对象
                        }
                        xfsj(jyzxfqd, jcvalue);
                    }
                    jyzxftim = zqtime;
                    if (xfrecordnumber % 9600 > 5000) //不是突触传入
                    {
                        jyzxfds = 0;
                    }
                    else
                    {
                        jyzxfds = 1;
                        leiji = leiji + 1;
                    }
                }
                if (qzjyzxftime < qztime | qzjyzxftime > qztime)
                {
                    //前一兴奋周期它没有兴奋。;                   
                    jyzxfqd = jia;
                    jyzxftim = zqtime;
                    if (xfrecordnumber % 9600 > 5000) //不是突触传入
                    {
                        jyzxfds = 0;
                    }
                    else
                    {
                        jyzxfds = 1;
                        leiji = leiji + 1;
                    }
                }
                putfun(jyzxftimerecordnumber, jyzxftim, zsk, fd);
                putfun(jyzxfdsrecordnumber, jyzxfds, zsk, fd);
                putfun(jyzxfqdrecordnumber, jyzxfqd, zsk, fd);
            }
            if (jyzxftime == zqtime)
            {
                //这种情况下,这一刻这个记忆柱的传入易化不是第一次。;在传入记忆中计算。
                if (xfrecordnumber % 9600 < 5000) //是突触传入
                {
                    jyzxfds = jyzxfds + 1;
                    leiji = leiji + 1;
                    jyzxfqd = jyzxfqd + jia;
                    xfsj(jyzxfqd, jcvalue);
                }
                else   //不是突触传入
                {
                    jyzxfqd = jyzxfqd + jia;
                    xfsj(jyzxfqd, jcvalue);
                }
                putfun(jyzxfdsrecordnumber, jyzxfds, zsk, fd);
                putfun(jyzxfqdrecordnumber, jyzxfqd, zsk, fd);
            }
            //记入记忆柱的段
            if (xfrecordnumber % 9600 < 5000) //突触才记入段,其它的不记入。
            {
                lingshilabel = zjxfrecordnumber + (1600) * 4 + (label - 1) * 1550 + jyzxfds - 9567;
                putfun(lingshilabel, xfrecordnumber, zsk, fd);
            }
            //记忆柱没有记录入过展示框的情况。(需要专门的sub);
            if (zjyzxftime < zqtime && jyzxfqd >= 1000)
            {
                //分易兴奋的与不易兴奋的记忆柱。;
                int xfrecordnumber1 = (xfrecordnumber / 9600) * 9600 + 9578;
                int n1 = xfrecordnumber1 - 9578 + 9580;
                int n = 68; zsk = 19;  //状态中枢
                getfun(n, ref lingshilabel, zsk, fd);
                zsk = 8;
                getfun(n1, ref lingshilabel1, zsk, fd);
                putfun(xfjyzxftimerecordnumber, zqtime, zsk, fd);//记录兴奋的时间
                if (xfjyzxftimerecordnumber < lingshilabel)
                {
                    int ht = xfjyzxftimerecordnumber / 9600 % 2;
                    if (xfrecordnumber == 326378)
                    {
                       int  tccqjy = 100;
                    }
                    if (ht == 0)
                        zsk = 5;
                    else
                        zsk = 6;
                    jrzsk(zsk, qlabelrecordnumber, xfrecordnumber1, zqtime, label);
                }
                if (xfjyzxftimerecordnumber > lingshilabel && ((xfjyzxftimerecordnumber - lingshilabel) / 9600) % 3 == 0)
                {
                    zsk = 4;
                    jrzsk(zsk, qlabelrecordnumber, xfrecordnumber1, zqtime, label);
                }
            }
        }
        public void xfsj(int jyzxfqd, int jcvalue)
        {
            /* int jb = 200; int zjj = 0;
             if (jcvalue == 7 | jcvalue == 12)
             {
                 if (jyzxfqd > 5000 * 5 + jcvalue * jb & jyzxfqd <= 10000 * 5 + jcvalue * jb)
                 {
                     jyzxfqd = 5000 * 5 + jcvalue * jb + (jyzxfqd - 5000 * 5 - jcvalue * jb) * 9 / 10;
                 }
                 if (jyzxfqd > 10000 * 5 + jcvalue * jb & jyzxfqd <= 15000 * 5 + jcvalue * jb)
                 {
                     zjj = jyzxfqd - 10000 * 5 - jcvalue * jb;
                     jyzxfqd = 5000 * 5 + jcvalue * jb + 5000 * 5 * 9 / 10;
                     jyzxfqd = jyzxfqd + (zjj) * 6 / 10;
                 }
                 if (jyzxfqd > 15000 * 5 + jcvalue * jb & jyzxfqd <= 20000 * 5 + jcvalue * jb)
                 {
                     zjj = jyzxfqd - 15000 * 5 - jcvalue * jb;
                     jyzxfqd = 5000 * 5 + jcvalue * jb + 5000 * 5 * 9 / 10;
                     jyzxfqd = jyzxfqd + 5000 * 5 * 6 / 10;
                     jyzxfqd = jyzxfqd + (zjj) * 3 / 10;
                 }
                 if (jyzxfqd > 20000 * 5 + jcvalue * jb & jyzxfqd <= 30000 * 5 + jcvalue * jb)
                 {
                     zjj = jyzxfqd - 20000 * 5 - jcvalue * jb;
                     jyzxfqd = 5000 * 5 + jcvalue * jb + 5000 * 5 * 9 / 10;
                     jyzxfqd = jyzxfqd + 5000 * 5 * 6 / 10;
                     jyzxfqd = jyzxfqd + 5000 * 5 * 3 / 10;
                     jyzxfqd = jyzxfqd + (jyzxfqd - 20000 * 5 - jcvalue * jb) * 1 / 10;
                 }
                 if (jyzxfqd > 30000 * 5 + jcvalue * jb)
                 {
                     zjj = jyzxfqd - 30000 * 5 - jcvalue * jb;
                     jyzxfqd = 5000 * 5 + jcvalue * jb + 5000 * 5 * 9 / 10;
                     jyzxfqd = jyzxfqd + 5000 * 5 * 6 / 10;
                     jyzxfqd = jyzxfqd + 5000 * 5 * 3 / 10;
                     jyzxfqd = jyzxfqd + 10000 * 5 * 1 / 10;
                     jyzxfqd = jyzxfqd + (zjj) * 3 / 100;
                 }
             }
             if (jcvalue == 1)
             {
                 if (jyzxfqd > 5000 * 5 + jcvalue * jb & jyzxfqd <= 10000 * 5 + jcvalue * jb)
                 {
                     jyzxfqd = 5000 * 5 + jcvalue * jb + (jyzxfqd - 5000 * 5 - jcvalue * jb) * 9 / 10;
                 }
                 if (jyzxfqd > 10000 * 5 + jcvalue * jb & jyzxfqd <= 15000 * 5 + jcvalue * jb)
                 {
                     zjj = jyzxfqd - 10000 * 5 - jcvalue * jb;
                     jyzxfqd = 5000 * 5 + jcvalue * jb + 5000 * 5 * 9 / 10;
                     jyzxfqd = jyzxfqd + (zjj) * 6 / 10;
                 }
                 if (jyzxfqd > 15000 * 5 + jcvalue * jb & jyzxfqd <= 20000 * 5 + jcvalue * jb)
                 {
                     zjj = jyzxfqd - 15000 * 5 - jcvalue * jb;
                     jyzxfqd = 5000 * 5 + jcvalue * jb + 5000 * 5 * 9 / 10;
                     jyzxfqd = jyzxfqd + 5000 * 5 * 6 / 10;
                     jyzxfqd = jyzxfqd + (zjj) * 3 / 10;
                 }
                 if (jyzxfqd > 20000 * 5 + jcvalue * jb & jyzxfqd <= 30000 * 5 + jcvalue * jb)
                 {
                     zjj = jyzxfqd - 20000 * 5 - jcvalue * jb;
                     jyzxfqd = 5000 * 5 + jcvalue * jb + 5000 * 5 * 9 / 10;
                     jyzxfqd = jyzxfqd + 5000 * 5 * 6 / 10;
                     jyzxfqd = jyzxfqd + 5000 * 5 * 3 / 10;
                     jyzxfqd = jyzxfqd + (jyzxfqd - 20000 * 5 - jcvalue * jb) * 1 / 10;
                 }
                 if (jyzxfqd > 30000 * 5 + jcvalue * jb)
                 {
                     zjj = jyzxfqd - 30000 * 5 - jcvalue * jb;
                     jyzxfqd = 5000 * 5 + jcvalue * jb + 5000 * 5 * 9 / 10;
                     jyzxfqd = jyzxfqd + 5000 * 5 * 6 / 10;
                     jyzxfqd = jyzxfqd + 5000 * 5 * 3 / 10;
                     jyzxfqd = jyzxfqd + 10000 * 5 * 1 / 10;
                     jyzxfqd = jyzxfqd + (zjj) * 3 / 100;
                 }
             }*/
        }
        void jrzsk(int zsk, int qlabelrecordnumber, int xfrecordnumber, int zqtime, int label)
        {
            int jrlabel = 0;
            getfun(qlabelrecordnumber, ref jrlabel, zsk, fd);
            int lingshilabel = jrlabel + 1;
            putfun(qlabelrecordnumber, lingshilabel, zsk, fd);
            lingshilabel = qlabelrecordnumber + jrlabel + 1;
            if (xfrecordnumber == 38378)  //表示已经成为主注意对象
            {
                int abeltime = qlabeltime + 1;
            }
            putfun(lingshilabel, xfrecordnumber, zsk, fd);
            if (zsk != 11)
            {
                lingshilabel = xfrecordnumber - 78 + 73 + (label - 1);
                int zsk1 = 8;
                putfun(lingshilabel, zqtime, zsk1, fd);//记忆柱被易化达到兴奋的程度);
                int jyzxfqdrecordnumber = xfrecordnumber + (label - 1) * 3 + 2 - 78 + 67;
                getfun(jyzxfqdrecordnumber, ref lingshilabel, zsk1, fd);
            }
        }
        #endregion
        #region
        private void button2_Click(object sender, EventArgs e)
        {
            ydbiaozhi = 1; csbl = 0;
        }
        private void button3_Click(object sender, EventArgs e)
        {
            ydbiaozhi = 2;
        }
        private void button4_Click(object sender, EventArgs e)
        {
            ydbiaozhi = 3;
        }
        private void button5_Click(object sender, EventArgs e)
        {
            ydbiaozhi = 5;
        }

        #endregion
    }
}

路过

雷人

握手

鲜花

鸡蛋

评论 (0 个评论)

facelist doodle 涂鸦板

您需要登录后才可以评论 登录 | 注册

小黑屋|手机版|Archiver|生物行[生物导航网] ( 沪ICP备05001519号 )

GMT+8, 2024-7-18 00:31 , Processed in 0.034926 second(s), 18 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

返回顶部