C#关键字foreach用法
											 程序代码:
程序代码:using System;
using System.Collections.Generic;
using System.Text;
namespace Ch06ex01
{
    class Program
    {      
        static void Main(string[] args)
        {
            Console.WriteLine("{0} command line arguments were specified:",args.Length);
            foreach(string arg in args);//此处有问题 提示当前上下文中不存在arg         
            Console.WriteLine(arg);
            Console.ReadKey();
        }  
    }
}
编译有错 用的是命令行参数



 
											






 
	    

 
	



 
											