02 2014 档案

摘要:#include #include using namespace std;//list 链表的打印void print(list& l){ list::iterator i,iend; iend = l.end(); for (i=l.begin();i!=iend;i++) { cout l... 阅读全文
posted @ 2014-02-28 22:02 wangyaning 阅读(4346) 评论(0) 推荐(0)
摘要:#include #include using namespace std;void print(vector& v)//打印函数{ cout& v)//反向遍历vector元素{ vector::reverse_iterator ri , riend; riend = v.rend(); for ... 阅读全文
posted @ 2014-02-26 21:50 wangyaning 阅读(331) 评论(0) 推荐(0)
摘要:鼠标画矩形:// An example program in which the// user can draw boxes on the screen.///* License: Oct. 3, 2008 Right to use this code in any way you want... 阅读全文
posted @ 2014-02-21 14:19 wangyaning 阅读(921) 评论(0) 推荐(0)