VC获取指定文件夹路径flyfish 2010-3-5一 使用Shell函数1
获取应用程序的安装路径TCHAR
buf[_MAX_PATH];SHGetSpecialFolderPath(NULL,buf,CSIDL_PROGRAM_FILES,NULL);AfxMessageBox(buf);2...
分类:
其他好文 时间:
2014-05-01 10:42:38
阅读次数:
357
runtime
bundle/vim-pathogen/autoload/pathogen.vimset nocompatible " be iMproved,
requiredfiletype off " required" set th...
分类:
其他好文 时间:
2014-05-01 08:38:20
阅读次数:
327
原题地址:http://oj.leetcode.com/problems/linked-list-cycle-ii/题意:如果链表中存在环路,找到环路的起点节点。解题思路:这道题有点意思。首先使用快慢指针技巧,如果fast指针和slow指针相遇,则说明链表存在环路。具体技巧参见上一篇http://w...
分类:
编程语言 时间:
2014-05-01 08:19:31
阅读次数:
340
思路很简单,就是存储之前运算的结果,然后递归class Solution {public: int**
dp; int get_min_sum(vector > &grid, int m, int n) { if (dp[m][n] != -1)
...
分类:
其他好文 时间:
2014-05-01 07:54:47
阅读次数:
330
void listFiles(){ namespace fs = boost::filesystem;
boost::filesystem::path path=boost::filesystem::current_path();
fs::directory_iterator item_beg...
分类:
其他好文 时间:
2014-05-01 05:23:07
阅读次数:
310
目录[-]使用 boost::filesystem 的第一个程序清单 1.
用于确定某个文件的类型是否为 Directory 的代码了解 Boost path 对象清单 2. 创建 Boost path 对象的方法清单 3.
使用本机格式初始化 path清单 4. 使用可移植格式初始化 pathpa...
分类:
其他好文 时间:
2014-05-01 04:25:38
阅读次数:
417
今天在写栈碰到 了一个问题关于c语言参数传递的让我郁闷了半天
我只发现了两个问题一个
实参sum(a,b)
形参sum(int a,int b)或者sum(int &a,int &b)
实参sum(&a,&b)
形参sum(int *a,int *b)
这个就是c函数传地址与传引用传值!...
分类:
编程语言 时间:
2014-04-29 13:38:21
阅读次数:
271
代码来自于这里
https://code.google.com/p/stanford-cs193g-sp2010/source/browse/trunk/tutorials/sum_reduction.cu...
分类:
其他好文 时间:
2014-04-29 13:13:20
阅读次数:
324