摘要: 1 #include <iostream> 2 using namespace std; 3 int jc(int n) 4 { 5 int a=1; 6 if (n<0) cout<<"ERROR!"; 7 else if (n==0||n==1) a=1; 8 for(int i=1;i<=n;i++) 9 a=a*i;10 return a;11 }12 13 int main()14 { 15 cout<<jc(-100)<<endl;16 cout<<jc(0)<<endl;17 阅读全文
posted @ 2011-11-20 11:08 贰百舞 阅读(219) 评论(0) 推荐(0) 编辑
摘要: Could not find rake-0.9.2 in any of the sourcesRun `bundle install` to install missing gems.------------------------------》。bundle install可以解决.. ... 阅读全文
posted @ 2011-11-15 13:20 贰百舞 阅读(135) 评论(0) 推荐(0) 编辑
摘要: rails在windows下安装遇到的问题http://my.oschina.net/u/185728/blog/33156-------------Ruby on Rails安装http://www.hoowolf.net/2011/09/15/the-development-of-ruby-on-rails/---------------Ruby on Rails开发入门http://www.hoowolf.net/2011/09/24/ruby-on-rails-development/----------------搭建Netbeans+ruby+rails+SQLite的ROR环境h 阅读全文
posted @ 2011-11-07 09:24 贰百舞 阅读(107) 评论(0) 推荐(0) 编辑
摘要: guokr:京东的商品关注其实是一个BUG,而不是用户的产品体验问题京东的商品评论积分制度是为何产生的?----------------------------用的产品太少,是热爱当一个用户,而不是当产品经理 阅读全文
posted @ 2011-10-16 21:47 贰百舞 阅读(124) 评论(0) 推荐(0) 编辑
摘要: Eclipse打开工程Eclipse生成的结果不像VC,Jcreator那样可以直接打开,若要打开非workspace文件夹下的其他工程,可以打开菜单file->import->general->existing project into space.在select root directory中选中要打开的文件夹即可。此时如果选择copy existing project into workspace就会同时将文件拷贝到workspace下。如果要打开的工程与Eclipse的配置不同,在运行时会产生问题。解决方法是:打开菜单project->properties修改。 阅读全文
posted @ 2011-09-29 11:35 贰百舞 阅读(361) 评论(0) 推荐(0) 编辑
摘要: 禁用Adobe Reader Updater的自动升级作者:月光 来源:月光博客 酷勤网收集 2009-03-09 Adobe Reader是个不错的PDF阅读器,也是“谷歌软件精选”的一个成员,也是一个常用软件,其本身体积较为庞大,我曾经推荐使用Foxit Reader来替换这个软件。 不过安装了Foxit Reader再和Adobe Reader相比较,我们会发现,Adobe Reader对中文字体的渲染效果要好于Foxit Reader,因此在中文环境下,Adobe Reader还真难以替代。不过Adobe Reader有一个不好的地方,就是老是自动更新,即使在“首选项”中关闭了自动更新 阅读全文
posted @ 2011-08-03 11:02 贰百舞 阅读(720) 评论(0) 推荐(0) 编辑
摘要: #include "StdAfx.h"#include "XmlExporter.h"#include "GeomUtilities.h"#include "LocalizedStrings.h"//Include the resource header on windows so that //we have our string constants from the strings table//#ifdef WINDOWS#include "../win32/resource.h"//#e 阅读全文
posted @ 2011-07-28 14:21 贰百舞 阅读(437) 评论(0) 推荐(1) 编辑
摘要: 1 char sql_insert[200]; 2 sprintf(sql_insert, "REPLACE INTO user_goal(NAME,Time) values('1-您的步数,'%d'),('计算机的步数','%d'),('3-您赢的次数,'%d'),('4-您输的次数,'%d');", a,b,c,d);3 mysql_query(&mydata, sql_insert);就是这一段。。。MYSQL中插入变量......------------- 阅读全文
posted @ 2011-05-31 16:44 贰百舞 阅读(3663) 评论(0) 推荐(0) 编辑
摘要: sqlstr ="CREATE TABLE IF NOT EXISTS user_info";sqlstr+="(";sqlstr+="user_id INT UNSIGNED NOT NULL PRIMARY KEY COMMENT 'Unique User ID',";sqlstr+="user_name VARCHAR(100) CHARACTER SET gb2312 COLLATE gb2312_chinese_ci NULL COMMENT 'Name Of User'," 阅读全文
posted @ 2011-05-26 10:01 贰百舞 阅读(188) 评论(0) 推荐(0) 编辑