コード例 #1
0
        public static string[] GetArrayop1() //ARRAY DONDE ESTÁN LOS INDICES DEL NUMERO DE INSTRUCCION QUE SE VA A EJECUTAR
        {
            string[]      lineasOP = new string[] { };
            Instrucciones inst1    = new Instrucciones();

            lineasOP = inst1.LeerTxt();
            string[]      lines          = new string[] { };
            string[]      opcionesA      = new string[] { };
            List <string> listaopcionesA = new List <string>();

            foreach (string line in lineasOP)
            {
                lines = line.Split('+');
                listaopcionesA.Add(Generics.Lists <string>(ref lines[1]));
            }

            opcionesA = listaopcionesA.ToArray();

            return(opcionesA);
        }
コード例 #2
0
        public static string[] GetArrayinstxt()
        {
            string[]      lineastxt = new string[] { };
            Instrucciones inst3     = new Instrucciones();

            lineastxt = inst3.LeerTxt();
            string[]      lines            = new string[] { };
            string[]      instruccionestxt = new string[] { };
            List <string> listainstxt      = new List <string>();

            foreach (string line in lineastxt)
            {
                lines = line.Split('+');
                listainstxt.Add(Generics.Lists <string>(ref lines[3]));
            }

            instruccionestxt = listainstxt.ToArray();


            return(instruccionestxt);
        }
コード例 #3
0
        public static string[] GetArrayop2()
        {
            string[]      lineasOp = new string[] { };
            Instrucciones inst2    = new Instrucciones();

            lineasOp = inst2.LeerTxt();
            string[]      lines          = new string[] { };
            string[]      opcionesB      = new string[] { };
            List <string> listaopcionesB = new List <string>();

            foreach (string line in lineasOp)
            {
                lines = line.Split('+');
                listaopcionesB.Add(Generics.Lists <string>(ref lines[2]));
            }

            opcionesB = listaopcionesB.ToArray();


            return(opcionesB);
        }
コード例 #4
0
        public static string[] GetArrayopcionestxt()
        {
            string[] lineasop = new string[] { };
            Opcion   ops      = new Opcion();

            lineasop = ops.LeerTxt();
            string[]      lines      = new string[] { };
            string[]      optext     = new string[] { };
            List <string> listaoptxt = new List <string>();

            foreach (string line in lineasop)
            {
                lines = line.Split('+');
                listaoptxt.Add(Generics.Lists <string>(ref lines[2]));
            }

            optext = listaoptxt.ToArray();


            return(optext);
        }
コード例 #5
0
        public static string[] GetArrayIndexIns()
        {
            string[] lineasop = new string[] { };
            Opcion   ops      = new Opcion();

            lineasop = ops.LeerTxt();
            string[]      lines         = new string[] { };
            string[]      indexins      = new string[] { };
            List <string> listaindexins = new List <string>();

            foreach (string line in lineasop)
            {
                lines = line.Split('+');
                listaindexins.Add(Generics.Lists <string>(ref lines[1]));
            }

            indexins = listaindexins.ToArray();


            return(indexins);
        }
コード例 #6
0
        public static string[] GetArrayins() //ARRAY DONDE ESTÁN LOS INDICES DEL NUMERO DE INSTRUCCION QUE SE VA A EJECUTAR
        {
            string[]      lineasInstr = new string[] { };
            Instrucciones inst        = new Instrucciones();

            lineasInstr = inst.LeerTxt();
            string[]      lines              = new string[] { };
            string[]      instrucciones      = new string[] { };
            List <string> listainstrucciones = new List <string>();

            foreach (string line in lineasInstr)
            {
                lines = line.Split('+');
                listainstrucciones.Add(Generics.Lists <string>(ref lines[0]));
            }
            instrucciones = listainstrucciones.ToArray();


            //instrucciones = listainstrucciones.ToArray();

            //Console.WriteLine(instrucciones.GetLength(0));
            return(instrucciones);
        }