摘要:
Window -- Prefences -- General -- Editors -- Text Editors -- show line numbers 阅读全文
摘要:
取消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"可以指定构造 阅读全文
摘要:
if(c=='\'') 逗号是转义字符 阅读全文
摘要:
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 " < 阅读全文
摘要:
#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 阅读全文
摘要:
#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 阅读全文
摘要:
打包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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
#include<iostream>#include<ctime>using namespace std;int main(){time_t now_time;now_time = time(NULL);cout<<now_time;getchar();return 0;} 阅读全文