qingcheng奕  

2014年1月9日

摘要: F5 开始调试,执行到断点Shift + F5 停止调试F9 在光标所在行添加断点Shift + F9 QuickWatchShift Ctrl F9 delete all 断点F10 单步执行F11 进入调用的函数Shift F11 跳出这次调用的函数另外还可以用Disable all breakpoints可以右键点击添加breakpoint condition.比如 int i = 0; 条件可以是 i==5,或者 i has changed.如果 string str,则可以 strcmp(str,"onestring") ==0这样的。对于char *str ;s 阅读全文
posted @ 2014-01-09 22:41 qingcheng奕 阅读(1730) 评论(0) 推荐(0) 编辑
 
摘要: http://oj.leetcode.com/problems/add-two-numbers/将用链表表示的两个数相加,(2 -> 4 -> 3) + (5 -> 6 -> 4) 就是342 + 465.刚开始把题目给理解错了,做复杂了。主要是对指针的理解。ListNode *addTwoNumbers(ListNode *l1, ListNode *l2) { // IMPORTANT: Please reset any member data you declared, as // the same Solution instance will be reus.. 阅读全文
posted @ 2014-01-09 20:33 qingcheng奕 阅读(133) 评论(0) 推荐(0) 编辑