2014年2月12日

C#输入排序-冒泡

摘要: 1 using System.Collections.Generic; 2 using System.Linq; 3 using System.Text; 4 namespace MP 5 { 6 class Pro 7 { 8 public void f... 阅读全文

posted @ 2014-02-12 17:49 小马哥~程序之美 阅读(177) 评论(0) 推荐(0) 编辑

enum举例

摘要: #include#includeenum day{sun=0,mon,tue,wed,thu,fri,sat};enum day tomorrow(enum day d){enum day nd; switch(d){ case sun: nd=mon;break; case mon: nd=tue;break; case tue: nd=wed;break;case wed: nd=thu;break; case thu: nd=fri;break; case fri: nd=sat;break; case sat: nd=sun;break; } return (nd);}int m... 阅读全文

posted @ 2014-02-12 17:42 小马哥~程序之美 阅读(145) 评论(0) 推荐(0) 编辑

导航