需求:给人搭配不同的服饰代码版本一# -*- encoding: utf-8 -*-class Person attr_accessor :name def initialize(name) @name = name end def wear_t...
分类:
其他好文 时间:
2014-12-31 22:49:12
阅读次数:
249
Parse error: syntax error 指的是语法错误,比如>没对齐啦,少?啦,什么的。帝国备份王的一个错误还可能的一个原因是wamp 没有开启短标签支持,导致php不认识这些标签,解决方法如下:1.先使用phpinfo.php文件打印出信息2.找到Loaded Configuratio...
分类:
Web程序 时间:
2014-12-31 15:50:21
阅读次数:
185
Algorithm: Scan through the array, keep finding 1. prices[i] with the condition: prices[i] prices[i+1], or at the end of an ascending trend, trea...
分类:
其他好文 时间:
2014-12-31 06:16:24
阅读次数:
159
1 module(..., package.seeall) 2 3 local g_Debug_Flag = true 4 5 function log(msg) 6 if g_Debug_Flag == false then 7 return 8 end 9 ...
分类:
其他好文 时间:
2014-12-30 18:30:11
阅读次数:
186
cocos2d-js-v3.2-rc0cc.director.end();//退出appcc.Application.getInstance().openURL("http://www.baidu.com");//openurl
输入一个英文句子,包含字母大小写、逗号、句号和空格。把英文句子中的单词的字母顺序倒置。
#include
using namespace std;
void revese(char* start,char* end)
{
while(start<end)
{
*start=*start^*end;
*end=*start^*end;...
分类:
其他好文 时间:
2014-12-30 15:22:15
阅读次数:
135
1.substrsubstr(start,length)表示从start位置开始,截取length长度的字符串。var src="images/off_1.png";alert(src.substr(7,3));弹出值为:off 2.substringsubstring(start,end)表示从s...
分类:
Web程序 时间:
2014-12-30 13:34:05
阅读次数:
161
实际读取图片的代码已经上传到我的资源里面; 下面贴出使用例子:
unsigned char* esLoadJPG(const char *fileName, int *width, int *height, int *size)
{
FILE *f = fopen(fileName, "rb");
fseek(f, 0, SEEK_END);
*size ...
分类:
系统相关 时间:
2014-12-30 11:41:37
阅读次数:
276
在libsvm和liblinear软件包里有一个C函数叫libsvmread,这个函数的作用是把如下格式的文本文件\begin{align*} 1 & \ \ *:* \ \ *:* \\ -1 & \ \ *:* \ \ *:* \end{align*}读取进MATLAB,将第一列的$1,-1.....
分类:
其他好文 时间:
2014-12-30 01:41:08
阅读次数:
1000
#import @interface Person : NSObject- (void)test1;- (void)test2:(NSString *)str;@end#import "Person.h"@implementation Person- (void)test1{ NSLog(@"...
分类:
移动开发 时间:
2014-12-30 00:24:42
阅读次数:
151