|
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.IO;
namespace Con070107
{
class Program
{
static void Main(string[] args)
{
string a = "1,2,5";//a can be changed;
String [] aa=new string[6];
/*zxlu="-" lxlr="-" rzck="-"
sjbs="." xxcx="." xxts="."
Should be defined as an array! ! */
for(int i=1;i<=6;i++)
{
if (a.IndexOf(i.ToString()) >=0)
aa[i-1] = "-";
else
aa[i-1] = ".";
}
for (int i = 0; i <= 5; i++)
{
System.Console.WriteLine(aa[i]);
}
}
}
}
}
The above has been tested and passed! ! |
|