会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
byfei
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
86
87
88
89
90
91
92
93
94
95
下一页
2011年11月11日
eclipse显示行号
摘要: Window -- Prefences -- General -- Editors -- Text Editors -- show line numbers
阅读全文
posted @ 2011-11-11 09:36 byfei
阅读(161)
评论(0)
推荐(0)
2011年11月10日
取消eclipse代码自动换行
摘要: 取消eclipse代码自动换行每次用Eclipse自带的Ctrl+shift+f格式化代码时,如果原来的一行代码大于80列,Eclipse就会自动换为多行,这点个人感觉不是很舒服.我们可以通过以下方式进行修改:1、preferences->Java->Code Style->Code Formatter->Show... ,打开之后,选择“Line Wrapping”选项卡,在“Maximun line width”指定大于多少列时换行。2、还是在“Line Wrapping”选项卡中,能过选择"Line Wrapping policy"可以指定构造
阅读全文
posted @ 2011-11-10 15:51 byfei
阅读(515)
评论(0)
推荐(0)
2011年11月5日
判断一个字符是单引号
摘要: if(c=='\'') 逗号是转义字符
阅读全文
posted @ 2011-11-05 17:19 byfei
阅读(404)
评论(0)
推荐(0)
mysql blob导出文本解密
摘要: blob数据:3132332C31332C302C362C302C312C392C342C352C32302C342C31312C31302C302C#include <fstream> #include <iostream> #include <stdlib.h> using namespace std;void main() { FILE *pt; if((pt=fopen( "d:\\test2.txt ", "a+ "))==NULL) { cout << "erro " <
阅读全文
posted @ 2011-11-05 17:06 byfei
阅读(796)
评论(0)
推荐(0)
C++读取txt文件
摘要: #include <fstream> #include <iostream> #include <stdlib.h> using namespace std;void main() { FILE *pt; if((pt=fopen( "d:\\test.txt ", "a+ "))==NULL) { cout << "erro " <<endl; } char ch; while((ch=fgetc(pt))!=EOF) { cout <<ch; } fclose
阅读全文
posted @ 2011-11-05 12:56 byfei
阅读(285)
评论(0)
推荐(0)
2011年11月4日
mysql环境配置
摘要: #include "db_mysql.h"class CProperty{public:CMysql m_Mysql;}void CProperty::Init(){net::AddressStr strAddr = Pogo::NarrowToWide(g_pGateConfig->szListenAddr);int nMaxcon = g_pGateConfig->nMaxCon;bool bFlag = m_Server.Init(strAddr,nMaxcon);//if(!bFlag){return ;}/*if(!m_wdList.Start(add
阅读全文
posted @ 2011-11-04 17:29 byfei
阅读(123)
评论(0)
推荐(0)
2011年11月3日
mysql blob类型
摘要: 打包const std::string CDBObjectManager::GetDetails(){std::string str;if(GetElementCount()==0){str="";return str;}sg_mgrStringMap.PutInt(str,GetElementCount());//数量sg_mgrStringMap.PutInt(str,GetAttributeCount());//属性数量for(iterator iter = Begin(); iter != End(); ++iter){CDBObject* pObject = it
阅读全文
posted @ 2011-11-03 21:38 byfei
阅读(281)
评论(0)
推荐(0)
2011年10月31日
数字居中
摘要: void CPlay::ScoreTwoPaint(){if(999999<ScoreTwo)ScoreTwo=999999;int PlayTwoScoreSW=ScoreTwo/100000;int PlayTwoScoreW=(ScoreTwo/10000)%10;int PlayTwoScoreQ=(ScoreTwo/1000)%10;int PlayTwoScoreB=(ScoreTwo/100)%10;int PlayTwoScoreS=(ScoreTwo/10)%10;int PlayTwoScoreG=ScoreTwo%10;PlayTwoScoreXY.x=320;Pl
阅读全文
posted @ 2011-10-31 01:10 byfei
阅读(207)
评论(0)
推荐(0)
数字左对齐
摘要: void CPlay::ScoreTwoPaint(){if(999999<ScoreTwo)ScoreTwo=999999;int PlayTwoScoreSW=ScoreTwo/100000;int PlayTwoScoreW=(ScoreTwo/10000)%10;int PlayTwoScoreQ=(ScoreTwo/1000)%10;int PlayTwoScoreB=(ScoreTwo/100)%10;int PlayTwoScoreS=(ScoreTwo/10)%10;int PlayTwoScoreG=ScoreTwo%10;PlayTwoScoreXY.x=320;Pl
阅读全文
posted @ 2011-10-31 01:01 byfei
阅读(236)
评论(0)
推荐(0)
2011年10月30日
获得系统时间
摘要: #include<iostream>#include<ctime>using namespace std;int main(){time_t now_time;now_time = time(NULL);cout<<now_time;getchar();return 0;}
阅读全文
posted @ 2011-10-30 01:16 byfei
阅读(118)
评论(0)
推荐(0)
上一页
1
···
86
87
88
89
90
91
92
93
94
95
下一页
公告