玩家移动1.检查位置包auto& mpos = m_spBase->getMapPos(pos.tgtPos);if(!check_move_pos(pos, pl)) return;2.跟新当前位置及方向,更新客户端发过来的位置pl->last_move_mode = EnumMoveMod...
分类:
移动开发 时间:
2014-08-31 18:35:11
阅读次数:
299
11.1map是关联容器,vector是顺序容器11.2略11.3int main(){ map word; string s; while(cin>>s) word[s]++; for(auto i:word) cout word; str...
分类:
编程语言 时间:
2014-08-31 10:26:41
阅读次数:
426
#include #include #include using namespace std;bool StringIsUnique(string s) { sort(s.begin(),s.end()); for (auto p = s.begin(); p != s.end()-1;) { .....
分类:
其他好文 时间:
2014-08-31 06:03:40
阅读次数:
245
/*Typing Loader*/div.typing { width: 400px; height: 300px; margin: 20px auto 500px; border: 2px #0f0 solid; background: #000; }.typing_loader{ width: ...
分类:
Web程序 时间:
2014-08-31 00:18:30
阅读次数:
819
/* 线性渐变 */div.radial {width: 600px;height: 100px;margin: 30px auto;border: 1px #f00 solid;background: -webkit-gradient(linear, 0 0, 0 100%, from(yello...
分类:
Web程序 时间:
2014-08-30 17:36:40
阅读次数:
356
org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read-only mode (FlushMode.NEVER/MANUAL): Turn your Ses...
分类:
其他好文 时间:
2014-08-30 13:46:49
阅读次数:
368
init_timer(); //各种定时器的初始化void Map::init_timer(){ //auto tf = GetPlug(TimerFactory); auto tf = m_spTimerFactory; m_updateMovePosTimer.reset...
分类:
其他好文 时间:
2014-08-29 23:51:08
阅读次数:
240
LAST_INSERT_ID自动返回最后一个 INSERT 或 UPDATE 操作为 AUTO_INCREMENT列设置的第一个发生的值. 参考这里The ID that was generated is maintained in the server on aper-connection bas...
分类:
数据库 时间:
2014-08-29 19:50:38
阅读次数:
198
刚才在ubuntu14.04中用gedit打开windows下的txt文件出现乱码
解决办法如下:
1.gsettings set org.gnome.gedit.preferences.encodings auto-detected
"['GB18030', 'GB2312', 'GBK', 'UTF-8', 'BIG5', 'CURRENT', 'UTF-16']"
2...
iOS 7 按钮无边框,操作栏透明,控制器全屏
Auto Layout会帮助app自动调整新的UI元素度量,
并且对字号自动动态调整。
iOS 7,app的图标尺寸是120 x 120像素(高分辨率下)。提供包含 状态栏部分的图像。
iOS 7,视图控制器统一采用了全屏视图
自定义bar的icon。
使用Auto Layout帮助你的app完成相...
分类:
移动开发 时间:
2014-08-29 18:19:38
阅读次数:
449