急!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
string name = "Hello";
int [ ] num = new int [5];
foreach(char j in name)
{
for(int i=0;i<num.length;++i)
{
num[i] = (int)j;
}
}
foreach(int i in num)
{
Console.write(i+" ");
}
我知道这个不对,请问我想达到这个效果该怎么写?非常感谢您.