for (int i = 0; i < dk; i++) { s = reader.ReadLine(); if (s.Replace(".", ",") != null) s = s.Replace(".", ","); a = int.TryParse(s, out k); if (!(a)) { MessageBox.Show(String.Format("{0} satrda son emas !", i + 4 + m), "Xatolik", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); return false; } mx[k] = 1;
// s = String.Format("mx[{0}]={1}", k, mx[k]); // listBox1.Items.Add(s);
}
//************** kuch qo'yilgan nuqtalar***************** s = reader.ReadLine(); if (s.Replace(".", ",") != null) s = s.Replace(".", ","); Read1 = s.Split(Separator, StringSplitOptions.RemoveEmptyEntries); a = int.TryParse(Read1[0], out ss); // listBox1.Items.Add("**************************************"); for (int i = 0; i < ss; i++) { s = reader.ReadLine(); if (s.Replace(".", ",") != null) s = s.Replace(".", ","); Read1 = s.Split(Separator, StringSplitOptions.RemoveEmptyEntries); a = Int32.TryParse(Read1[0], out k); b = Int32.TryParse(Read1[1], out dk); c = Double.TryParse(Read1[2], out uk); if (!(a && b && c)) { MessageBox.Show(String.Format("{0} satrda son emas !", i + 4 + m), "Xatolik", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); return false; } Inversiya_set(k - 1, dk, uk);