码迷,mamicode.com
首页 >  
搜索关键字:顶层 const    ( 27917个结果
ffmpeg save rtsp stream
#include #ifdef __cplusplusextern "C" {#endif#include #include //#include #ifdef _MSC_VERint strcasecmp(const char *s1, const char *s2){ while ((*s...
分类:其他好文   时间:2014-05-05 11:09:37    阅读次数:382
hdu 1598 find the most comfortable road
http://acm.hdu.edu.cn/showproblem.php?pid=1598 1 #include 2 #include 3 #include 4 #define maxn 2000 5 using namespace std; 6 const int inf=1<<30; 7...
分类:其他好文   时间:2014-05-05 10:53:38    阅读次数:344
Qt入门 - QVariant
QVariant相当于一个包含大多数Qt数据类型的联合体将数据存储为一个Private结构体类型的成员变量d:1 QVariant::QVariant(Type type)2 { create(type, 0); }1 void QVariant::create(int type, const vo...
分类:其他好文   时间:2014-05-04 19:30:20    阅读次数:593
c 深度剖析 6
函数的编码风格1.注释2,空行3,缩进4,参数长度,代码长度,语句长度要合适。5,少用全局变量6,指针仅作输入参数时,可用const 设置其为只读属性,避免其在函数中被修改。7,函数默认的输入输出参数为int 类型,无输入参数或输出参数时要注意用void8,入口参数进行断言检验来自为知笔记(Wiz)
分类:其他好文   时间:2014-05-04 11:10:26    阅读次数:300
[软件工程结组项目]十天冲刺工作总结---吴盈盈
日期每日工作描述遇到的问题2014年4月23日想要通过顶层的水纹波动来体现动态效果,但是考虑到要颠覆已设计好的背景以及实际显现出来的效果最终放弃了这一设想无2014年4月24日为游戏设计菜单栏,加入游戏选项以及多种场景的选择加入场景后游戏出现卡顿,经查阅资料得出的是插入的透明空间导致空间的每一次运动...
分类:其他好文   时间:2014-05-04 10:27:04    阅读次数:326
CF 427D Match & Catch 求最短唯一连续LCS
题目来源:CF 427D Match & Catch 题意:给出2个字符串 求最短的连续的公共字符串 并且该字符串在原串中只出现一次 思路:把2个字符串合并起来求height 后缀数组height的应用 #include #include #include using namespace std; const int maxn = 100010; char s[maxn]; int s...
分类:其他好文   时间:2014-05-04 09:32:45    阅读次数:315
C头文件之<cstring>
(string.h)这个文件夹主要是定义了几个对字符串和数组进行操作的函数。功能很强大。下面是重要函数:strcpy、strncpystrcpy,strncpy这两个函数是对字符串的复制,很常用。memcpy函数原型:void * memcpy ( void * destination, const...
分类:其他好文   时间:2014-05-03 23:10:14    阅读次数:310
unicode string和ansi string的转换函数及获取程序运行路径的代码
#pragma once#include namespace stds { class tool { public: std::string ws2s(const std::wstring& ws) { std::string curLocale = setlocale(LC_ALL...
分类:其他好文   时间:2014-05-03 22:25:17    阅读次数:318
boost::serialization(2)序列化基类
在派生类中序列化一个基类 假如有一个基类如下: class student_info { public: student_info() {} virtual ~student_info() {} student_info(const std::string& sn, const std::string& snm, const std::string& sg) : name_(sn),...
分类:其他好文   时间:2014-05-03 21:41:12    阅读次数:356
让你提前认识软件开发---学长的软件开发经验总结(18)
第1部分 重新认识C语言C语言中常用的文件操作函数总结及使用方法演示代码 1. C语言中常用的文件操作函数总结(1) fopen作用:打开文件。表头文件:#include 定义函数:FILE *fopen(const char *path, const char *mode);函数说明:参数path字符串包含欲打开的文件路径及文件名,参数mode字符串则代表着流形态。mode有下列几种形态字符串:...
分类:其他好文   时间:2014-05-03 21:38:17    阅读次数:279
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!