JsonCpp是c++中解析Json常用的解析库。在项目开发中,服务端如果用的是java的话都会是以JSON格式进行传输,客户端使用c++的话都会用到JsonCpp。看看下面这个问题: json字串:{"@type":"Login","messageType":"Login","sendTim...
分类:
Web程序 时间:
2014-06-27 20:36:51
阅读次数:
1935
1、选秀节目打分,分为专家评委和大众评委,score[] 数组里面存储每个评委打的分数,judge_type[] 里存储与 score[] 数组对应的评委类别,judge_type[i] == 1,表示专家评委,judge_type[i] == 2,表示大众评委,n表示评委总数。打分规则如下:专家评...
分类:
其他好文 时间:
2014-06-27 19:44:59
阅读次数:
159
You may need to set up a root account for your MySQL database:In the terminal type:mysqladmin -u root password 'root password goes here'
分类:
数据库 时间:
2014-06-27 17:14:06
阅读次数:
210
看完这篇测量坐标方位角计算的文章 队长再也不怕我的内业工作了。有的同志对课本的方位角概念理解的非常透彻,但是实际工作中为什么老是出错呢?也许是当时的现场环境因素,也许突然脑子混了,但我觉得 更重要的是没有掌握我老王的这种对方位角的理解。俺的这种理解肯定并非我的原创,只是我的理解再加上整理得出。那么今...
分类:
其他好文 时间:
2014-06-26 16:16:20
阅读次数:
184
数据链路层:mtu的限制在这层
14字节:6字节目标mac,6字节源mac,2字节type,
网络层:(ip dns arp)分片重组在这层,每个包长不可超过mtu
只举例ip协议:
20字节160bits:4位版本 4位头长,8位服务类型16位总长度
16位标示3位标志13位片偏移
...
分类:
其他好文 时间:
2014-06-26 13:41:58
阅读次数:
274
#include
#include
#include
#include
#include
int main( void )
{
int signo;
pid_t pid;
if( (pid=fork())
{
fprintf(stderr, "main 1 fork err!\n");
ret...
分类:
其他好文 时间:
2014-06-26 11:45:48
阅读次数:
212
总结:1、如果form里面只有一个input type=text,那么无论有没有submit按钮,在input中回车都会提交表单。如果不想回车提交,需要再加一个input type=text,然后设置display:none.2、如果form里面多于一个input type=text,那么必须有一个...
分类:
其他好文 时间:
2014-06-26 11:28:17
阅读次数:
139
ORA-00937: 非单组分组函数错误
select count(*), t.user_name
from sys_user t, sys_department a, sys_dep_type d
where t.dep_id = a.dep_id
and a.dep_id = d.dep_id
and t.recd_is_del = 0
group by t.u...
分类:
其他好文 时间:
2014-06-26 08:07:37
阅读次数:
231