/*
关于赋值语句的思考(便于理解眼花缭乱的赋值语句):
1.准备阶段:将第一个赋值语句的左值“抬起”存入临时变量中(once allowed);
2.赋值阶段:运用赋值语句进行数据的写入(several times allowed);
3.后续阶段:将“抬起”的变量“放下”(once)。
*/
/*
filename:N1.cs
author:jiangbangxing
*/
using System;
namespace N1
{
class A
{
public void Myls()
{
int[] a = {1,2,3};
int temp;
temp = a[a.Length-1];//将数组中最后一个元素“抬起”
for (int i = a.Length-1; i > 0; i--)
{
a[i] = a[i-1];//数据写入
}
a[0] = temp;//将“抬起”的数据“放下”
for(int i = 0;i