2012年2月13日

最简单的“数塔”问题

摘要: #include <iostream> #define maxn 100 using namespace std; int max(int a,int b) { return (a>b?a:b); } int main() { int a[maxn+1][maxn+1],i,j,n; cin >>n; for (i=1;i<=n;i++)for (j=1;j<=i;j++) cin >>a[i][j]; for (i=n-1;i>=1;i--)for (j=1;j<=i;j++) a[i][j]+=max(a[i+1][j],a 阅读全文

posted @ 2012-02-13 23:16 凌&&晨 阅读(123) 评论(0) 推荐(0) 编辑

2011年10月14日

Tomcat

摘要: 运行tomcat7w.exe tomcat7.exe ,提示 指定的服务未安装 unable to open the service 'tomcat7' 博客分类:TomcatTomcat运行tomcat7w.exe tomcat7.exe ,提示 指定的服务未安装 unable to open the service 'tomcat7'(用的是绿色的Tomcat7)解决方法:打开命令行提示符窗口=> 进入Tomcat安装目录==> 进入bin目录下==> 输入:service.bat install 即可直接到目录点击这个service.ba 阅读全文

posted @ 2011-10-14 00:24 凌&&晨 阅读(122) 评论(0) 推荐(0) 编辑

2011年10月5日

结构体

摘要: typedef struct _point{int x;int y;}point; //定义类,给类一个别名,相当于int///////////struct _point{int x;int y;}point; //定义类,给类一个别名,相当于int a中的a ,是个实例 阅读全文

posted @ 2011-10-05 10:23 凌&&晨 阅读(102) 评论(0) 推荐(0) 编辑

2011年9月19日

关于(11111*11111)

摘要: #include<iostream>#include<math.h>using namespace std;int main(){long double a=11111*11111;cout<<a<<endl;return 0;}//double类型的数字一定要对应%lf//float类型的数字一定要对应%f//#include<cmath>//延伸:结果远远超过long double ,只给加法运算,使机器用笔算的方法实现两个数相乘,待续... 阅读全文

posted @ 2011-09-19 21:33 凌&&晨 阅读(107) 评论(0) 推荐(0) 编辑

导航