void TestListSort(){
List<string> st = new List<string> ();
st.Add ("abcd");
st.Add ("abcdad");
st.Add ("a");
st.Add ("adadfaff");
st.Sort (ssort);
foreach(string str in st){
print (str);
}
}
int ssort(string str1,string str2){
if (str1.Length != str2.Length) {
if (str1.Length > str2.Length) {
return 1;
} else {
return -1;
}
} else {
return 0;
}
}

  

最新文章

  1. 当忘记mysql数据库密码时如何进行修改
  2. Unity 碰撞的例子
  3. Extract Fasta Sequences Sub Sets by position
  4. void及void指针含义的深刻解析
  5. spring技术翻译开始
  6. safari的input问题
  7. 【HighCharts系列教程】三、图表属性——chart
  8. 再起航,我的学习笔记之JavaScript设计模式16(享元模式)
  9. EF Working with Transactions
  10. 【杂】暴力出奇迹,lz水数据
  11. 【BZOJ4504】K个串
  12. Fedora下使用minicom及USB串口线
  13. 【转】【Centos】安装 lnmpa 集成开发环境
  14. 使用 requests 发送 GET 请求
  15. WeakHashMap 理解
  16. Angularjs 首次加载显示{{}}
  17. python 之sqlite3库学习
  18. SQL 关联两个表的视图总结
  19. UVALive 6906 A - Cluster Analysis
  20. nginx1.11.9 apt即源码编译各平台测试

热门文章

  1. iOS开发小工具
  2. Canvas 与 Image 相互转换
  3. springboot整合actuator,进行运维监控
  4. sharepoint_study_11
  5. day36 mysql 表的具体操作
  6. forEach与map
  7. java——巨简陋文本编辑器
  8. 干货-Spring3.2.3的所有注解
  9. vector 中需要注意的东西!
  10. Ancient Messages UVA - 1103