111,093
社区成员




class Validation
{
public string Mr;
public static int Comp_result(string s1,string s2)
{
int result = string.Compare(s1, s2);
return result;
}
}
Mr = Convert.ToInt32(Console.ReadLine());
string Ord1 ="-1";
string Ord2 = "1";
int res1 = Validation.Comp_result(Mr, Ord1);
int res2 = Validation.Comp_result(Mr, Ord2);
string i ="-1";
int a = Covnert.ToInt32(i);
int b = int.Parse(i);
string c = a.ToString();
string d = Convert.ToString(b) ;
装箱,拆箱,
显示转换,隐式转换。