- 博客(10)
- 收藏
- 关注
原创 matlab2014a连接vs2013编译器mex出错
经过一天的折腾,终于解决了问题。总的来说就是之前电脑装过vs低版本,没有删干净,环境变量VS120COMNTOOLS指向的是一个空的文件夹,通过mex -setup -v可以看到先运行位于xx:\Microsoft Visual Studio 12.0\Common7\Tools和xx:\Microsoft Visual Studio 12.0\VC\bin目录下的vsvars32.bat配置
2017-12-04 16:10:39
1148
转载 两边空格的编程风格
1-9:在两个以上的关键字、常量、变量进行对等操作时, 它们之间的操作符两侧都要加空格。 进行非对等操作时,如果是关系密切的操作符(如:++),不应加空格。给操作符留空格是不要留两个以上的空格。 说明:采用这种松散方式编写代码的目的是使代码更加清晰。 例子: (1) 逗号、分号只在后面加空格。 int a, b, c; (风格良好的) int a,b,c; (风格欠佳的)
2017-10-13 21:40:43
441
原创 NO 30 Substring with Concatenation of All Words
总的思路是使用了两次滑动窗:第一次是用于截取满足长度要求的混序子字符串,第二次是判断混序子字符串是否满足题意
2017-10-11 12:41:40
169
转载 vs各种目录库的配置总结
VS项目中的包含目录、库目录、附加包含目录、附加库目录、附加依赖项均在"项目->属性->配置属性"下进行配置,具体说明如下: VC++目录:包含目录:寻找#include中的xxxx.h的搜索目录库目录:寻找.lib文件的搜索目录C/C++:常规->附加包含目录:寻找#include中的xxxx.h的搜索目录(每一项对应一个文件夹XXXX,文件夹中包含了编译时所需的头文件,
2017-10-10 10:44:10
554
原创 3. Longest Substring Without Repeating Characters
/*Given a string, find the length of the longest substring without repeating characters.给定一个字符串,找到最长子串的长度,而不重复字符。*/ int lengthOfLongestSubstring(string s) { if (s.size() == 0) return 0;
2017-10-09 22:41:07
164
原创 NO 76 Minimum Window Substring
/*Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n).For example,S = "ADOBECODEBANC"T = "ABC"Minimum window is "BANC".给
2017-10-08 20:31:01
192
原创 ip地址的正则表达式
(((\d{1,2})|(1\d{2})|(2[0-4]\d)|(25[0-5]))\.){3}((\d{1,2})|(1\d{2})|(2[0-4]/d)|(25[0-5]))
2017-10-07 21:48:50
740
原创 438. Find All Anagrams in a String
Given a string s and a non-empty string p, find all the start indices of p's anagrams in s.Strings consists of lowercase English letters only and the length of both strings s and p will not be
2017-10-06 20:07:48
185
原创 205. Isomorphic Strings
Given two strings s and t, determine if they are isomorphic.Two strings are isomorphic if the characters in s can be replaced to get t.All occurrences of a character must be replaced with anot
2017-08-15 09:12:40
178
转载 Spring的自动装配Bean的三种方式
spring的自动装配功能的定义:无须在Spring配置文件中描述javaBean之间的依赖关系(如配置、)。IOC容器会自动建立javabean之间的关联关系。如果没有采用自动装配的话,手动装配我们通常在配置文件中进行实现:一下代码就是手动装配:?12345678910beansxmlns="http:/
2017-08-12 10:55:32
360
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人