第4章-面向对象基础.ppt

  1. 1、本文档共101页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
TreeView树视图控件 TreeView控件以树形结构的方式来显示数据。其目录的每个节点都有一个与之相关的TreeNode对象,每个TreeNode对象都包含一个Nodes和Level属性。通过TreeView控件可实现下图所示效果。 using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace program06 { class Program06 { static void Main(string[] args) { TestFunc(1, 2, 3, 4); Console.ReadKey(); } public static void TestFunc(params int[] array) { for (int i = 0; i array.Length; i++) { Console.WriteLine(array[i]); // 循环打印出数组中的数据 } } } } * class test { int a, b; public void accept(int a1, int b1) { a = a1; b = b1; } public int swap(ref int a1, ref int b1,out int result) { int t; t = a1; a1 = b1; b1 = t; result = a1 * b1; return a1 + b1; } } class Organization { public static void Main() { test t1 = new test(); int a = 3; int b = 4; int sum,d; sum=t1.swap(ref a, ref b,out d); Console.WriteLine({0},{1},{2},{3},a,b,sum,d); Console.ReadKey(); } } * * class test { int a, b; public void accept(int a1, int b1) { a = a1; b = b1; } public bool compare(int a1,int b1) { bool f = a1 b1; Console.WriteLine(整?数簓比括?较?大洙?小?); return f; } public bool compare(char a1, char b1) { bool f = a1 b1; Console.WriteLine(字?符?比括?较?大洙?小?); return f; } } class Organization { public static void Main() { test t1 = new test(); bool f,f1; f = pare(3, 4); f1 = pare(5, 3);

文档评论(0)

jyr0221 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档