摘要: 1 #include 2 #include 3 #include 4 using namespace std; 5 6 struct GT_cls //创建函数对象 7 { 8 public: 9 GT_cls(int t=0):a(t){}10 11 bool operat... 阅读全文
posted @ 2014-07-03 21:41 Marrybe 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 要求实现函数:void converse(ListNode **head);【输入】head: 链表头节点,空间已经开辟好【输出】head: 逆序后的链表头节点【返回】无【注意】只需要完成该函数功能算法,中间不需要有任何IO的输入输出示例输入:链表 1->2->3->4->5 的头节点head输出:... 阅读全文
posted @ 2014-07-03 11:17 Marrybe 阅读(270) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 using namespace std; 9 10 int calculator(string s) 11 { 12 ... 阅读全文
posted @ 2014-07-03 09:18 Marrybe 阅读(211) 评论(0) 推荐(0) 编辑