无法将类型“string”隐式转换为“int”
namespace student
{
class student
{
public string name;
public string num;
public int sc;
public int seng;
public int smath;
public int avg;
}
class Program
{
static void Main(string[] args)
{
}
public static void input(params student[] s)
{
for (int i = 0; i < s.Length; i++)
{
s[i] = new student();
Console.Write("姓名:");
s[i].name = Console.ReadLine();
Console.Write("学号:");
s[i].num = Console.ReadLine();
Console.Write("c++成绩:");
s[i].sc = Convert.ToInt32(objReader[""]);
Console.Write("英语成绩:");
s[i].seng = Convert.ToInt32(objReader[""]);
Console.Write("数学成绩:");
s[i].smath = Convert.ToInt32(objReader[""]);
}
}
}