会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
o黑の
博客园
首页
新随笔
联系
管理
订阅
[置顶]
string字符串格式化成time_t,并计算2个time_t的时间差
摘要: #include "time.h"#include #include using namespace std;time_t string2time(const string & time_string){ struct tm tm1; time_t time1; sscanf(time_string...
阅读全文
posted @ 2014-08-31 22:34 圳o
阅读(935)
评论(0)
推荐(0)
2014年2月20日
CSV简单解析与排序输出
摘要: 读取CSV每一行,每一行内容在解析时可以分为2种情况:1.没扫描到" 2.扫描到"情况1:直接通过截取内容中的,来分列。例如行内容为: 姓名,年龄,编号 。则可以分为3列姓名年龄编号情况2:扫描行内容,当扫描到内容的第一个",去掉该",接着扫描之后扫描到""则输出"其他内容按照原内容输出当扫描到单个符号"("之后没有紧接着")则去掉这个",该列扫描完毕。最后输出的内容为该列的值。例如内容为: """,","," 。则可以分为2
阅读全文
posted @ 2014-02-20 16:20 圳o
阅读(2318)
评论(0)
推荐(0)
2013年9月9日
jqchart总结
摘要: animation: { duration: 1 }, //动画显示 background: undefined //背景颜色 chartAreaBackground: undefined //图表区域背景颜色 title: { //标题 text: 'content' , // 图表标题 font: '22px sans-serif', // 字体大小 fillStyle: 'black', // 字体颜色 strokeStyle : undefined, //笔画风格 margin: 8 // 文字与图表距离 } border: { //边框
阅读全文
posted @ 2013-09-09 13:31 圳o
阅读(603)
评论(0)
推荐(0)
公告