播放器载入中...
Rolling In the Deep - Adele
播放器载入中...
假期计划算是又完成了一项
今晚自己下厨做了几个家常菜,假期计划算是又完成了一项。
平时在学校总是想着回家自己做几个好菜吃,可每次回来以后总是忙这忙那的,无暇做饭。哎,这也枉费了我一手的好厨艺。人呐,都是懒字作怪。前天爸妈不在家,本来说好我做饭给妹妹吃的,结果懒得做,一起到外面吃了。记得中学的时候,老妈有次做菜不好吃,我就一个人立马跑到菜场买了几个菜,回来自己做着吃了。现在估计我再也没有那样的冲动了。
看了《断弦》,里面的一个场景印象很深刻。傍晚,东湖边上,清风斜阳,波光粼粼,骑着单车环湖而行,多么惬意美好的画面。总想沿着东湖边走走,可是每次去那里都很匆忙,一晃而过。也得像回家做饭这样,制定一个计划,不完成就不离开武汉。
C++ STL map 遍历
#include <map>
#include <string>
#include <iostream>
using namespace std;
int main()
{
map<string,int> m;
m["a"]=1;
m["b"]=2;
m["c"]=3;
map<string,int>::iterator it;
for(it=m.begin();it!=m.end();++it)
cout<<"key: "<<it->first <<" value: "<<it->second<<endl;
return 0;
}
map::iterator it; 定义一个迭代指针it。
it->first 为索引键值,it->second 为值。
此程序在gentoo Linux 下测试没有问题。
win7刷新图标缓存
将以下内容存为flush_icon_win7.bat
文件,双击运行该bat文件即可。
rem 关闭Windows外壳程序explorer
taskkill /f /im explorer.exe
rem 清理系统图标缓存数据库
attrib -h -s -r "%userprofile%\AppData\Local\IconCache.db"
del /f "%userprofile%\AppData\Local\IconCache.db"
attrib /s /d -h -s -r "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\*"
del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_32.db"
del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_96.db"
del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_102.db"
del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_256.db"
del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_1024.db"
del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_idx.db"
del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_sr.db"
rem 清理 系统托盘记忆的图标
echo y|reg delete "HKEY_CLASSES_ROOT\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify" /v IconStreams
echo y|reg delete "HKEY_CLASSES_ROOT\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify" /v PastIconsStream
rem 重启Windows外壳程序explorer
start explorer