- 博客(6)
- 收藏
- 关注
原创 C#排序
王腾飞 2019/5/9 21:20:20 //对当前数组进行排序 int[] intArray = new int[7] { 45, 96, 212, 23, 109, 78, 36 }; int num = 0; for (int i = 0; i < intArray.Length ; i++) { for (int j = 0; j < intArray .Length -1-...
2019-05-09 21:22:22 214
原创 C# 基础(访问数组元素)
////随机生成1-10数字 添加到数组中 不能出现重复 //Random random = new Random(); //int[] intArr = new int[10]; //for (int i = 0; i < intArr.Length; i++) //{ // //随...
2019-04-26 20:34:56 603
原创 C# 各种姿势输出★★
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _4._21 { class Program { static void Main(string[] args) { ////打星1 //for (...
2019-04-25 18:50:07 214
原创 Unity C#摄像机高级跟随脚本
//声明变量,保存摄影机要跟随的目标 public Transform target; //声明变量,保存移动速度,初始化为2 public float moveSpeed = 2; //声明变量,保存位移 private Vector3 offset; void Awake() { //位移为摄像机位置与目标位置的距离 offset = transform.position - target.p...
2019-04-23 18:53:31 886
原创 c#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _4._21 { class Program { static void Main(string[] args) { //string a = “牛...
2019-04-23 11:41:36 243
原创 2.19.4.18
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _4._18 { class Program { static void Main(string[] args) { //int a = 10; /...
2019-04-18 19:29:47 85
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人