示例#1
0
        public static int Sensibile()
        {
            string linesens        = MetodiBioinf.ReadSens();
            int    lengthsensibile = linesens.Length;

            return(lengthsensibile);
        }
示例#2
0
        public static string Uguale()
        {
            string res  = MetodiBioinf.ReadRes();
            string sens = MetodiBioinf.ReadSens();
            long   p    = MetodiBioinf.Diverso();
            string u    = "";

            for (int i = 0; i < p; i++)
            {
                u += sens[i];
            }
            return(u);
        }
示例#3
0
        public static int Diverso()
        {
            string res  = MetodiBioinf.ReadRes();
            string sens = MetodiBioinf.ReadSens();

            for (int i = 0; i < Math.Min(sens.Length, res.Length); i++)
            {
                if (sens[i] != res[i])
                {
                    return(i);
                }
            }
            return(-1);
        }
示例#4
0
        public static int Stringhe()
        {
            string res  = MetodiBioinf.ReadRes();
            string sens = MetodiBioinf.ReadSens();
            int    d    = 0;

            for (int i = 0; i < Math.Min(sens.Length, res.Length); i++)
            {
                if (sens[i] != res[i])
                {
                    d++;
                }
            }
            return(d);
        }