将字符串string s=”9753”;转换为int类型 正确的语句是_________

大学网课 已帮助 人

将字符串string s=”9753”;转换为int类型,正确的语句是_________

A.int n=int.Parse(s)

B.int n=int.ValueOf(s)

C.int n=Convert.ToDouble

D.int n=Convert.ToInt32(s)

将字符串string s=”9753”;转换为int类型 正确的语句是_________

热搜:不能将整数型数据转换到文本型数据