#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
昨天编译一个小程序的时候,报了个错,或者说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
elmah(英文):https://code.google.com/p/elmah/写作思路:先看结果,然后再说原理elmah文章基本内容如下1.安装2.基本使用3.详细配置讲解简介ELMAH是一个开源项目,其目的是记录和报告在ASP.NET
Web应用程序未处理的异常。早在2004年9月与Atif...
分类:
Web程序 时间:
2014-05-26 02:21:44
阅读次数:
517
http://acm.hdu.edu.cn/showproblem.php?pid=1071#include#includeint
main(){ //freopen("in.txt","r",stdin); int t; scanf("%d",&t); while(t--)...
分类:
其他好文 时间:
2014-05-26 02:14:56
阅读次数:
222
环境配置项目使用SSH架构,现在要添加Spring事务管理功能,针对当前环境,只需要添加Spring 2.0
AOP类库即可。添加方法:点击项目右键->Build Path->Add librarys:打开Add Libraries对话框,然后选定
MyEclipse Libraries:点击Nex...
分类:
编程语言 时间:
2014-05-26 02:12:33
阅读次数:
581
A.直接用MyEclipse里自带的相关的项目jar包,右击项目“MyEclipse”菜单,选择对应的jar包就OK了
B.添加外部的jar包到web项目的lib包下,右击项目“Properties”-->“Java Build
Path”-->“Libraries”选项卡; C.自己手动拷贝jar...
分类:
数据库 时间:
2014-05-26 01:59:27
阅读次数:
377
CentOS命令登录MySQL时,报错ERROR 1045 (28000): Access
denied for user root@localhost (using password: NO)错误解决方法1、停用mysql服务:#
/etc/rc.d/init.d/mysqld stop2、输入命...
分类:
数据库 时间:
2014-05-26 01:58:12
阅读次数:
306
只是实现了链表ADT的部分功能。
/*---编写打印出一个单链表的所有元素的程序---*/
#include
#include
struct Node{
int val;
struct Node *next;
};
Node *findEnd(Node *list){
while(list->next) list = list->next;
return list;
}
v...
分类:
其他好文 时间:
2014-05-24 22:30:37
阅读次数:
232
初学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