C++ string类的成员函数,用于拷贝、赋值操作,它们允许我们顺次地把一个string 对象的部分内容拷贝到另一个string 对象上。string &operator=(const string &s);把字符串s赋给当前字符串string &assign(const char *s);用c类...
分类:
编程语言 时间:
2014-07-09 23:22:50
阅读次数:
287
php连接数据库分两种,一种是IP,一种是unix sock,即localhost,如果是连接本地mysql,用localhost较好,也方便后期的管理,如果用于连接非本地数据库,则要通过IP了。php连接mysql代码打开网页后出现下面代码cannot connect mysqlCan't con...
分类:
Web程序 时间:
2014-07-09 23:20:47
阅读次数:
277
从命令行执行django数据库操作,报错:
django.core.exceptions.ImproperlyConfigured: Requested setting DEFAULT_INDEX_TABLESPACE, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before acce...
分类:
数据库 时间:
2014-07-08 17:57:04
阅读次数:
495
这题坑了,我真该吃翔啊,居然一开始方程设错了而且没有去想连列的问题,我真是坑货,做不出就该重新理一下嘛,操蛋,
题意:给了N组x,y,z然后 问你是否存在两个或者两个以上的id,是的 id%x的值在区间[y,z]之间,若有则输出Cannot Take off
否则你懂得
根据题意 那么 列出 :
a*x1 + y1
b * x2 + y2
假设有解的话,那么这两个区...
分类:
其他好文 时间:
2014-07-08 15:20:37
阅读次数:
144
Windows Error 740 – The Requested Operation Requires ElevationWhat Does Error 740 Mean?If you are experiencing an error 740 message in Windows Vista o...
有时候在操作Session时,系统会抛出如下异常java.lang.IllegalStateException: Cannot create a session after the response has been committed原因1:Session 的创建语句:HttpSession se...
分类:
编程语言 时间:
2014-07-06 20:38:38
阅读次数:
298
不知道怎么回事,实验室的电脑在同学搞过之后,每次启动都报错rpcbind: cannot open '/run/rpcbind/rpcbind.xdr' file for reading, errno 2 (no such file or directory)rpcbind: cannot open...
分类:
其他好文 时间:
2014-07-06 14:45:46
阅读次数:
301
Description
Little John is herding his father's cattles. As a lazy boy, he cannot tolerate chasing the cattles all the time to avoid unnecessary omission. Luckily, he notice that there were N trees...
分类:
其他好文 时间:
2014-07-06 10:39:09
阅读次数:
188
执行启动nginx:/usr/local/nginx/sbin/nginx
错误:/usr/local/nginx/sbin/nginx: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory
查找:[roo...
分类:
其他好文 时间:
2014-07-06 00:11:52
阅读次数:
205
最近对内存管理,有了一些新的认识,以前只知道alloc,或者retain,或者copy,之后需要release或者autorelease;
只知其一,但是在工作学习中仅仅知道这些是不够用的,还需要知道属性等内部的内存存管理才行.
@property (readwrite,nonatomic,assign)NSInteger age;
@property (readwrite,no...
分类:
其他好文 时间:
2014-07-04 09:31:10
阅读次数:
354