码迷,mamicode.com
首页 > 其他好文
sprintf和printf
sprintf 跟printf在用法上几乎一样,只是打印的目的地不同而已,前者打印到字符串中,后者则直接在命令行上输出。这也导致sprintf比printf 有用得多.下面我们先说以下sprintf的用法.   sprintf是个变参函数,定义如下:     int sprintf(char *buffer, const char *format [, argument] ... )   除...
分类:其他好文   时间:2015-02-01 16:12:24    阅读次数:256
Bootstarp学习(八)下拉菜单
下拉菜单(基本用法) 小伙伴们注意,在Bootstrap框架中的下拉菜单组件是一个独立的组件,根据不同的版本,它对应的文件:   ?  LESS版本:对应的源码文件为 dropdowns.less   ?  Sass版本:对应的源码文件为 _dropdowns.scss   ?  编译后的Bootstrap版本:查看bootstrap.css文件第3004行~第31...
分类:其他好文   时间:2015-02-01 16:11:13    阅读次数:279
[BestCoder] Round #2
1001 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4883 题意为:有n组客人来吃饭,给出每组客人的人数及用餐开始时间,结束时间,格式为hh:mm;要求一组客人来的时候就必须给其安排位子 ,问最少需要多少把椅子才能做到(一位客人需要一把椅子). 方法:time[i],表示第i分钟有多少用餐的人,也就是需要多少把椅子,将开始时间,结束...
分类:其他好文   时间:2015-02-01 16:12:31    阅读次数:283
[BestCoder] Round #3
1001 http://acm.hdu.edu.cn/showproblem.php?pid=4907 #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace ...
分类:其他好文   时间:2015-02-01 16:10:13    阅读次数:175
leetcode_61_Rotate List
本文的题意就是循环将后面的n个结点移动到前面去,所以,n有可能是大于链表的长度的,这是一个小小的陷阱。然后就是很简单的细节了,有点脑残,提交了好多次。...
分类:其他好文   时间:2015-02-01 16:09:35    阅读次数:252
游戏渲染性能优化
忘记了以前是不是写过类似的文章了,不管了,结合近几年经验总结一下。 先从最核心的部分开始。如果熟悉图形API的朋友都应该可以理解,要想渲染一个模型,我们至少需要做两个操作,设置各种状态,调用绘图函数。这两个操作都会引起性能损失。我们分头来说 先说设置各种状态。都什么状态呢,比如使用什么纹理,是用什么着色器,是否开启Alpha测试,是否双面显示,是否使用混合以及怎么混合,等等。我...
分类:其他好文   时间:2015-02-01 16:11:49    阅读次数:440
[BestCoder] Round #6
1001 http://acm.hdu.edu.cn/showproblem.php?pid=4981 #include #include #include #include #include #include #include #include #include #include #include #include #include #define rd(x) ...
分类:其他好文   时间:2015-02-01 16:10:10    阅读次数:241
灰度图像--图像增强 Robert算子、Sobel算子
图像边缘增强,Robert算子,Sobel算子...
分类:其他好文   时间:2015-02-01 16:10:31    阅读次数:1136
报表打印错误:Forcing NLS_NUMERIC_CHARACTERS to: '.,' for XDO processing
HDSP0004 module: HDSP: 凭证打印 +---------------------------------------------------------------------------+ 当前的系统时间为 01-02-2015 15:11:33 +--------------------------------------------------------------...
分类:其他好文   时间:2015-02-01 16:10:56    阅读次数:1167
【leetcode】Majority Element
题目如下 Given an array of size n, find the majority element. The majority element is the element that appears more than ? n/2 ? times. You may assume that the array is non-empty and the majority...
分类:其他好文   时间:2015-02-01 16:08:38    阅读次数:202
[BestCoder] Round #8
1001 http://acm.hdu.edu.cn/showproblem.php?pid=4989 #include #include #include #include #include #include #include #include #include #include #include #include #include #define rd(x) ...
分类:其他好文   时间:2015-02-01 16:09:06    阅读次数:158
利用AC自动机进行关键字的提取和过滤
昨天看了meituan.com的AC算法在美团上单系统的应用一文,深受启发,原来ACM算法在工程中也能有这样赤裸裸的运用~~~ 于是便复习了AC自动机,并把代码用java重新搞了一遍~~ AC自动机整体的结果大概是长这样的,其实就是在trie树上做KMP : AC自动机里面比较难理解的应该是它的失配指针的计算过程。 这个计算过程从本质上讲就是进...
分类:其他好文   时间:2015-02-01 16:08:56    阅读次数:315
[LeetCode]162.Find Peak Element
【题目】 A peak element is an element that is greater than its neighbors. Given an input array where num[i] ≠ num[i+1], find a peak element and return its index. The array may contain multipl...
分类:其他好文   时间:2015-02-01 16:07:45    阅读次数:183
Remove Duplicates from Sorted List II
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list. For example, Given 1->2->3->3->4->4->5, return 1->2->5. Given 1->...
分类:其他好文   时间:2015-02-01 16:10:35    阅读次数:187
Bootstarp学习(九)按钮扩展
按钮(按钮组) 单个按钮在Web页面中的运用有时候并不能满足我们的业务需求,常常会看到将多个按钮组合在一起使用,比如富文本编辑器里的一组小图标按钮等。那么在这一节中,我们主要向大家介绍Bootstrap框架为大家提供的按钮组组件。 源码查询: 按钮组也是一个独立的组件,所以可以找到对应的源码文件:   ?  LESS版本:对应的源文件为buttons.less ...
分类:其他好文   时间:2015-02-01 16:08:45    阅读次数:238
hdu 4745
求一个环的最长回文序列,是序列不是串,起点是可以任意的,所以只要求出每个区间的最长回文序列之后取max(dp[1][i]+dp[i+1][n]),即可得最终答案Sample Input1141 1 2 162 1 1 2 1 30Sample Output145 1 #include 2 #incl...
分类:其他好文   时间:2015-02-01 16:09:26    阅读次数:136
[SAP ABAP开发技术总结]Function远程、同步、异步调用
目录导航 声明:原创作品,转载时请注明文章来自SAP师太博客,并以超链接形式标明文章原始出处,否则将追究法律责任!原文出自: 20.1. Function调用... 233 20.1.1. 更新FM:LUW.. 233 20.1.2. RFC函数:远程调用... 234 20.1.2.1. 同步.....
分类:其他好文   时间:2015-02-01 16:08:09    阅读次数:566
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!