首页 > 编程知识 正文

c和c++区别,c++教程

时间:2023-05-04 17:34:29 阅读:18726 作者:371

1 .概述

SortedSetint vs=new SortedSetint (;

vs.add (阵列int [ I ];

2 .代码

用户系统; using system.collections.generic; namespaceconsoleapp 11 { class program } staticvoidmain (string殷勤的黑米args ) console.writeline(Helloworld! ' ); SortedSetint vs=new SortedSetint (; (int殷恳的黑米array int={ 4,5 }; Console.WriteLine ('输入顺序'); for(intI=0; i arrayInt.Length; I ) {console.writeline(Arrayint[I]; vs.add (阵列int [ I ]; } Console.WriteLine ()自动排序后); Foreach(intIinvs ) console.writeline ) I; }控制台. read key (; }}3.运行结果

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。