![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++
wuhuiiii
这个作者很懒,什么都没留下…
展开
-
VS2010使用时的不常见错误
1、 调试时,程序不进入断点:源代码与原始版本不同解决方案:直接把整个文件格式化了一次,断点就可以用了:Ctrl + A全选-〉菜单-〉编辑-〉高级-〉设置选定内容的格式(Ctrl+K, Ctrl+F);2、 写入程序数据库时出错;请检查是否是磁盘空间不足、路径无效或权限不够解决方案:即:当你编译某一项目时,该项目的pdb文件正被另一处于调试状态下的编译原创 2015-06-23 22:06:07 · 575 阅读 · 0 评论 -
LeetCode题解---Plus One
题目:Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant digit is at the head of the list.思路:在原数字上加1,原创 2015-08-29 21:58:20 · 221 阅读 · 0 评论 -
LeetCode题解----Add Binary
题目:Given two binary strings, return their sum (also a binary string).For example,a = "11"b = "1"Return "100".思路:从右向左逐位相加,而后进位;代码:class Solution {public: string addBina原创 2015-08-29 21:53:34 · 230 阅读 · 0 评论 -
LeetCode题解----Number of 1 Bits
题目:Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as the Hamming weight).For example, the 32-bit integer ’11' has binary representati原创 2015-08-29 21:47:22 · 249 阅读 · 0 评论