猫史档案馆


爵士OIer

爵士OIer

Lv.1

无情刀永不知错 无缘份之叹奈何

获赞:2147收藏:1255浏览:61922作品收藏:509

签名:卷文化课的同时准备竞赛。

回复帖子评论
上一页103 页 / 共 147下一页

震惊!!帅哥工作室室长竟然做出这样的事!!! 中回复

2020-04-20T21:39:20 点赞:0

【你没听错!】爵士兵团队招人了!这次没有门槛! 中回复

dd

2020-04-23T22:21:24 点赞:0

谁会做掉线检测啊?联机的 中回复

判断一下在线人数然后把在线的人和之前存的对比一下

2020-04-23T22:22:11 点赞:0

谁会做掉线检测啊?联机的 中回复

具体地说,每个人进来的时候都把用户名放到一个链表里面,然后只要显示链表就行了

2020-04-23T22:22:43 点赞:0

谁会做掉线检测啊?联机的 中回复

如果要提示谁掉线了的话只要每秒存一下链表里的人,在线人数改变的时候对比一下之前存的和现在的链表有什么区别,把缺项报出来就行了

2020-04-23T22:23:46 点赞:0

我想加入小鹿工作室,可以吗? 中回复

来爵士兵

2020-04-23T22:24:16 点赞:0

谁会做掉线检测啊?联机的 中回复

总结一下,判断一下在线人数然后把在线的人和之前存的对比一下。具体地说,每个人进来的时候都把用户名放到一个链表里面,然后只要显示链表就行了。如果要提示谁掉线了的话只要每秒存一下链表里的人,在线人数改变的时候对比一下之前存的和现在的链表有什么区别,把缺项报出来就行了。这些怎么判断可以去学学链表和云变量,这里就不再赘述了。

2020-04-23T22:25:42 点赞:0

白尘讲堂-kitten-牧司,第二课制作“喵” 中回复

。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。

2020-04-23T22:26:10 点赞:0

谁会做掉线检测啊?联机的 中回复

啊我有个更好的方法,每秒判断一下在线人数并把判断变量标记0,如果发生变化了并且判断变量是0再把列表清空,然后把判断变量标记为1,这样别人就不会再次清空了,然后把自己的用户名丢进链表,重复到列表里的项数和在线人数一样,然后把判断变量重新标为0.

2020-04-23T22:50:12 点赞:0

谁会做掉线检测啊?联机的 中回复

每秒判断一下在线人数并把判断变量标记0,如果发生变化了并且判断变量是0再把列表清空,然后把判断变量标记为1,这样别人就不会再次清空了,然后把自己的用户名丢进链表,重复到列表里的项数和在线人数一样,然后把判断变量重新标为0.

 · 这里用到了标记变量,这是写代码的时候也常用到的一种技巧,其中变量的值为0表示列表项数和在线用户数一样,此时如果说在线用户数和列表项数不同的话就可以备份一下然后清空重新放;如果变量是1那么表示每个用户那端还没把自己的用户名存进去,这个时候不会清空。

2020-04-24T19:00:52 点赞:1

【社区星推荐】第十期·SGS罗帅哥就是秀 中回复

帅哥老师挖人

2020-04-24T19:05:53 点赞:0

【社区星推荐】第十期·SGS罗帅哥就是秀 中回复

(想知道几乎所有标准都快达成了但是就是差一点好久都没有上去的感受吗)

2020-04-24T19:07:09 点赞:0

【辣 稽 杯】 中回复

跑酷如此传神

2020-04-24T19:07:37 点赞:0

关于NOC和OI 中回复

OI难度大多了吧

2020-04-24T20:07:07 点赞:0

【kitten高级技巧】kitten技巧来了!快来围观吧~~ 中回复

以下教程,可以让你轻松入门OI!

https://shequ.codemao.cn/community/199346(DFS)https://shequ.codemao.cn/community/199498(线性DP)

https://shequ.codemao.cn/community/207911(模拟)https://shequ.codemao.cn/community/207618(分治)

https://shequ.codemao.cn/community/200968(记搜)https://shequ.codemao.cn/community/224373(状压)

https://shequ.codemao.cn/community/225092(树形dp)https://shequ.codemao.cn/community/261601(生成树)

https://shequ.codemao.cn/community/208169(区间dp)https://shequ.codemao.cn/community/266275(计算机)

https://shequ.codemao.cn/community/2喵803(期望)https://shequ.codemao.cn/community/2喵688(求导)

https://shequ.codemao.cn/community/263456(团队)https://shequ.codemao.cn/community/272524(AC自动机)

https://shequ.codemao.cn/community/275691(总结)https://shequ.codemao.cn/community/277341(图的联通)

https://shequ.codemao.cn/community/277325(书的直径)还有什么呢?快看看吧(雾

2020-04-24T20:09:56 点赞:0

教练喵告诉你【如何写一篇好的教程帖】 中回复

https://shequ.codemao.cn/community/199346(DFS)https://shequ.codemao.cn/community/199498(线性DP)

https://shequ.codemao.cn/community/207911(模拟)https://shequ.codemao.cn/community/207618(分治)

https://shequ.codemao.cn/community/200968(记搜)https://shequ.codemao.cn/community/224373(状压)

https://shequ.codemao.cn/community/225092(树形dp)https://shequ.codemao.cn/community/261601(生成树)

https://shequ.codemao.cn/community/208169(区间dp)https://shequ.codemao.cn/community/266275(计算机)

https://shequ.codemao.cn/community/264803(期望)https://shequ.codemao.cn/community/264688(求导)

https://shequ.codemao.cn/community/263456(团队)https://shequ.codemao.cn/community/272524(AC自动机)

https://shequ.codemao.cn/community/275691(总结)https://shequ.codemao.cn/community/277341(图的联通)

https://shequ.codemao.cn/community/277325(树直径)https://shequ.codemao.cn/community/282269(kitten)

麻烦看一看这些帖子能否加精,都达到要求了。

2020-04-24T20:13:42 点赞:0

教练喵告诉你【如何写一篇好的教程帖】 中回复

(队列还得讲讲堆)

2020-04-24T20:15:00 点赞:0

【kitten高级技巧】kitten技巧来了!快来围观吧~~ 中回复

有人吗?

2020-04-24T20:15:44 点赞:0

我要加入萌新院 中回复

加油。。。

2020-04-24T20:23:33 点赞:0

【kitten高级技巧】kitten技巧来了!快来围观吧~~ 中回复

请问认为

2020-04-24T20:30:24 点赞:0

关于NOC和OI 中回复

NOC不是图形化编程和Python吗,含金量是OI高啊

2020-04-25T08:48:21 点赞:0

我要加入! 中回复

来我们

2020-04-25T09:58:20 点赞:0

【kitten高级技巧】kitten技巧来了!快来围观吧~~ 中回复

ed

2020-04-25T11:56:29 点赞:0

活捉江湖派 中回复

我都说了N多遍了,那个不是测试社区,只不过中间换了一个网页所以那个被打上了test并不是真的测试,来的九的人的账号都在里面!

2020-04-25T12:38:54 点赞:2

。。。。。凑字 中回复

哪个人啊

2020-04-25T13:15:08 点赞:0

消息爆满.... 中回复

我一直99+

2020-04-25T13:19:39 点赞:1

【kitten最新!】最新版小游戏来啦! 中回复

有人吗?

2020-04-25T13:22:52 点赞:0

【kitten最新!】最新版小游戏来啦! 中回复

点赞!

2020-04-25T13:26:46 点赞:0

关于论(断罪之剑) 中回复

断罪的领导人是一头热

2020-04-25T16:08:46 点赞:0

【教程贴】额,补上次的 中回复

(你把int 讲了为什么直接弄float,double/short/long long/unsigned/char/string去哪冽)

2020-04-25T16:34:20 点赞:0