一、追溯去gameloft笔试,有一个题目是说:叫你去设计一个FPS(第一人称射击游戏),你是要用TCP呢还是要用UDP,说明理由
。二、学习这是两篇网上找到的文章,写非常不错。当时笔试的时候自己没想到这么全,但大概想法都是一致的,摘录下来再学习一下。1.网络游戏程序员须知 UDP vs
TCP作者...
分类:
其他好文 时间:
2014-05-12 18:11:42
阅读次数:
390
导读1.什么是序列化?2.为什么要序列化?好处在哪里?3.C++对象序列化的四种方法4.最常用的两种序列化方案使用心得正文1.什么是序列化?程序员在编写应用程序的时候往往需要将程序的某些数据存储在内存中,然后将其写入某个文件或是将它传输到网络中的另一台计算机上以实现通讯。这个将程序数据转化成能被存储...
分类:
编程语言 时间:
2014-05-12 16:37:24
阅读次数:
429
c语言中的输出操作相对java来说是比较麻烦的,每种数据类型的输出都有各自的占位符;下面是各种数据类型的输出占位符:short/int
: %dint a = 1;printf("这个整数是:%d", a);long: %ld; (long
是int得修饰,不能算是一种单独的数据类型,只是比int多...
分类:
编程语言 时间:
2014-05-06 01:01:14
阅读次数:
377
===================问题情况描述===================小弟一直在玩discuz论坛开源程序,这个论坛程序经常涉及到论坛搬家的问题。今天我在本地Wamp环境下,用开源软件帝国备份王2010进行数据库备份数据,结果打开发现报错500!这真是坑爹了,回想下以前自己使用这个...
分类:
Web程序 时间:
2014-05-06 00:23:25
阅读次数:
509
原地址:http://www.csdn.net/article/2012-09-03/2809495-java-debugging-tips-with-eclipse调试可以帮助识别和解决应用程序缺陷,在本文中,作者将使用大家常用的的开发工具Eclipse来调试Java应用程序。但这里介绍的调试方法...
分类:
编程语言 时间:
2014-05-06 00:11:56
阅读次数:
417
从VC++6.0不足看VisualC++2010新特性
说起VC,有人想到维生素C(维C),有人想到风险投资(venture capital),
程序员们尤其是做底层开发的程序员或老程序员们第一感觉肯定会想到Visual C++6.0。为什么是6.0而不是其它的版本?这里的原因就不用我再多讲了,因....
分类:
其他好文 时间:
2014-05-02 17:55:07
阅读次数:
400
Where's Waldorf?
Given a m by n grid
of letters, ( ),
and a list of words, find the location in the grid at which the word can be found. A word matches a straight, uninterrupted line o...
分类:
其他好文 时间:
2014-05-02 10:59:15
阅读次数:
514
A regular palindrome is a string of numbers or letters that is the same forward as backward. For example, the string "ABCDEDCBA" is a palindrome because it is the same when the string is read from lef...
分类:
其他好文 时间:
2014-05-02 10:33:09
阅读次数:
332
Problem
A Communist regime is trying to redistribute wealth in a village. They have have decided to sit everyone around a circular table. First, everyone has converted all of their properties to co...
分类:
其他好文 时间:
2014-05-02 10:30:59
阅读次数:
375