02对象数组
来源:互联网 发布:解放战争国民党知乎 编辑:程序博客网 时间:2024/05/01 08:23
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace ConsoleApplication1{ class Class1 { public class Student { public string name; public double score; public void showInfo() { Console.WriteLine(name + "\t" + score); } } static void Main(string[] args) { Student[] stus = new Student[3]; stus[0] = new Student(); stus[0].name = "哈哈"; stus[0].score = 100; stus[1] = new Student(); stus[1].name = "呵呵"; stus[1].score = 66; stus[2] = new Student(); stus[2].name = "么么哒"; stus[2].score = 88; Console.WriteLine("前三名学员的信息为:"); foreach (Student stu in stus) { stu.showInfo(); } Console.ReadLine(); } }}
0 0
- 02对象数组
- 02对象数组分开
- 对象数组
- 对象数组
- 对象数组
- 对象数组
- 数组对象
- 对象数组
- 数组对象
- 对象数组
- 对象数组
- 对象数组
- 对象数组
- 对象数组
- 数组对象
- 对象数组
- 对象数组
- 对象数组
- 喃喃自语
- node path.resolve()
- 高性能服务器架构思路(二)——缓冲清理策略
- 谁吃土的时候没有受过委屈?
- SubmitButton
- 02对象数组
- wpg闪电充:石墨烯你应该要了解的新型材料
- HTML5 <meta> 标签属性,所有meta用法都在这里了
- job执行时间往后延迟
- 在导入一个插件的时候,加入自己的广告
- 视频直播应用,且配有弹幕显示,内容均从斗鱼抓取
- Intel WebRTC之woogeen_config.js文件内容示例
- 您可能没有权限使用网络资源,请与这台服务器的管理员联系以查明是否有访问权限
- 报错 Only one AsyncAnnotationBeanPostProcessor may exist within the context.