#define stack_init_size 100
#define stackincrement 10
typedef int ElemType;
typedef int status;
const status error=0;
const status ok=1;
const status overflow=-2;
const int MAXSIZE = 100;
typedef st...
分类:
其他好文 时间:
2014-05-26 06:17:29
阅读次数:
243
质因数分解
/* 求质因数 */
#include
#include
int main()
{
int n,a=2;
printf("please input n:");
scanf("%d",&n);
if(n<=1)
{
printf("input error!\n");
return -1;
}
while(a*a < n)
{
while(n%a==0)
...
分类:
其他好文 时间:
2014-05-26 05:50:40
阅读次数:
279
#include
#include
#include
#include
#include
#include
using namespace std;
void display(int);//输出信息
int size=0;
class Book
{
public:
void welcome();//欢迎界面
void welcome1();
void addboo...
分类:
其他好文 时间:
2014-05-26 04:57:10
阅读次数:
344
昨天编译一个小程序的时候,报了个错,或者说2个
1>uafxcw.lib(dllmodul.obj) : error LNK2005: _DllMain@12 已经在 LIBCMT.lib(dllmain.obj) 中定义
1>uafxcw.lib(afxmem.obj) : error LNK2005: "void __cdecl operator delete(void *)" (??3@...
分类:
其他好文 时间:
2014-05-26 03:18:48
阅读次数:
200
1.//下面写一下关于AFNetworking2.0的GET数据请求问题,刚开始的时候没有写下面标红的代码,所以导致有一个问题,错误显示如下:
Error: Error Domain=AFNetworkingErrorDomain Code=-1016 "Request failed: unacceptable content-type: text/html" UserInfo=0x913a...
分类:
Web程序 时间:
2014-05-24 23:45:53
阅读次数:
365
JRE System Library [jdk1.7]和Server Library [Apache Tomcat v6.0]为绑定错误解决方案
图形详细解析……...
分类:
其他好文 时间:
2014-05-24 22:05:58
阅读次数:
389
作为新入职的菜鸟,过去的这半个月忙的是焦头烂额的,碰到了许多问题,但都没时间好好记下来。趁着今天这点时间,记录一下有关repo使用过程中碰到的一些问题及解决办法吧!
一、repo sync时出现 error: .repo/manifests/: contains uncommitted changes 这样的错误提示。从字面意思上看是代码有改动但是没有commit。但好几次我查看了代码,把改动通...
分类:
其他好文 时间:
2014-05-24 17:56:58
阅读次数:
451
初学Hibernate,用官方给的日志模板配置好了日志,跑起小例子,控制台中的日志里写了一些异常:
21:16:36,036DEBUGEntityLoader:146-
Staticselectforentitycn.sjll.hibernate435.model.UserModel
[OPTIMISTIC_FORCE_INCREMENT]:selectusermodel0_.IDasID1_0_0_,
usermodel0_.N..
分类:
系统相关 时间:
2014-05-24 16:42:45
阅读次数:
388
关于php与mysql之间的工作机制,今天蛋疼地考虑php编译安装时不添加--with-mysql参数,是否可以实现mysql_connect()函数。第一次编译只是简单的./configure--prefix=/usr/local/php--with-config-file-path=/usr/local/php/etc
make&&makeinstallmysql_connect()果然使..
分类:
Web程序 时间:
2014-05-24 15:40:47
阅读次数:
1057
参考:https://docs.python.org/3.4/library/functions.htmlhttps://docs.python.org/2/library/functions.htmlhttp://blog.csdn.net/jgood/article/details/4371991以上链接分别为Python官网的3.4版本的内建方法说明、2.X(指2.6和2.7)版本的内建方法说明、以及JGood对2.X版..
分类:
编程语言 时间:
2014-05-24 15:36:42
阅读次数:
528