Archive for 12月, 2016

转:汽车挡风玻璃刮不干净的根本原因

星期二, 12月 27th, 2016

来源:http://bbs.wzljl.cn/thread-108085-1-1.html

最近下雨,我的小车因为前挡玻璃刮不干净而导致我开车特别烦躁,晚上雨刮一扫车灯一照就啥都看不见了。上淘宝买了副三段式无骨雨刮,解决了刮响和雨刮弹跳产生的条状水纹等情况的问题,但是水膜状的东西还是不能根本解决。于是上网搜索各类解决办法,终于有了发现,经过实践,这个迷解开了。
正常情况下,原厂雨刮用个三两年是绝对没问题的。会造成刮不干净的原因主要还是玻璃的问题,但可悲的是很少人会这么认为,都说是雨刮没用了,原厂的质量太差、换无骨的、一百多元一片进口的....但是用不了多久,同样的问题还是出现了,从不考虑是否因为玻璃...
(更多…)

Visual Studio缓存清理

星期三, 12月 21st, 2016

批处理脚本:

@echo off
for %%i in (7.1,9.0,10.0,12.0) do (
@REG Delete HKCU\Software\Microsoft\VisualStudio\%%i\FileMRUList /f
@REG Delete HKCU\Software\Microsoft\VisualStudio\%%i\ProjectMRUList /f
@REG Delete HKCU\Software\Microsoft\VisualStudio\%%i\Find /va /f
@REG Delete HKCU\Software\Microsoft\VisualStudio\%%i\ComponentPickerPages /f
@REG Delete HKCU\Software\Microsoft\VisualStudio\%%i\Object_Browser /f
@REG Delete "HKCU\Software\Microsoft\VisualStudio\%%i\Class View" /va /f
)
for %%i in (2005,2008,2010,2013) do (
RD /s /q "%USERPROFILE%\Documents\Visual Studio %%i\Backup Files"
RD /s /q "%USERPROFILE%\Documents\Visual Studio %%i\Settings"
RD /s /q "%USERPROFILE%\Documents\Visual Studio %%i\Templates"
)
pause

C++的4种类型转换

星期四, 12月 15th, 2016

摘自:http://www.cnblogs.com/welfare/articles/336091.html

一、C 风格(C-style)强制转型如下:

(T) expression // cast expression to be of type T
函数风格(Function-style)强制转型使用这样的语法:
T(expression) // cast expression to be of type T
这两种形式之间没有本质上的不同,它纯粹就是一个把括号放在哪的问题。我把这两种形式称为旧风格(old-style)的强制转型。

(更多…)