• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
yingqunsong
博客园 首页 新随笔 联系 订阅 订阅 管理

2025年6月19日

打印出姓名和对应的票
摘要: static void Main() { //1,创建姓名,年龄数组, //2,当age<14,"儿童票"。 //3,当14<=age<65,"成人票". // 当65<=age,"老年票". //4,打印出姓名和对应的票。 string[] strName = { "刘德华", "张雪", "张老 阅读全文
posted @ 2025-06-19 12:42 “毛毛虫” 阅读(5) 评论(0) 推荐(0)
 
 

2025年6月18日

数组/字符串转换int 数据类型
摘要: internal class Program { public static void Main() { //练习,定义一个数组, 从键盘上输入3个数值, 打印输出最大数值。 int[] intArray = new int[3]; int intMax = int.MinValue; for (i 阅读全文
posted @ 2025-06-18 23:56 “毛毛虫” 阅读(7) 评论(0) 推荐(0)
 
练习组数,感觉没有理解到位
摘要: namespace lianxi { internal class Program { private static string firstName; private static object course1Name; private static object course5Name; sta 阅读全文
posted @ 2025-06-18 19:37 “毛毛虫” 阅读(6) 评论(0) 推荐(0)
 
 

2025年6月17日

For循环规则
摘要: int start = 1; int end = 100; Console.WriteLine($"{start}到{end}之间的偶数"); for (int i = start; i <= end; i++) { if ( i % 2 == 0) //判断是否为偶数 { Console.Writ 阅读全文
posted @ 2025-06-17 21:28 “毛毛虫” 阅读(24) 评论(0) 推荐(0)
 
 

2025年6月13日

学习了一节 Translate和Rotate
摘要: using System.Collections; using System.Collections.Generic; using UnityEngine; public class Base08 : MonoBehaviour { public float moveSpeed = 100f; pu 阅读全文
posted @ 2025-06-13 20:19 “毛毛虫” 阅读(3) 评论(0) 推荐(0)
 
 

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3