码迷,mamicode.com
首页 >  
搜索关键字:comment    ( 4550个结果
iOS UIText 或 UILabel 显示 HTML 并正确选用编码
有的时候我们可能会选用 UIText 或 UILabel 来显示 HTML 代格式的文字。NSAttributedString *html = [[NSAttributedString alloc]initWithData:[NSLocalizedString(@"comment", nil) da...
分类:移动开发   时间:2014-09-10 17:37:20    阅读次数:141
Halcon 10.0 Sample:完整性检查(圆形)
1 * ball.hdev: Inspection of Ball Bonding 2 * 球接合检查 Comment Time:2014/9/10 3 *核心思想:1.白色区域用作自动ROI,黑色区域是目标 4 * 2.Opening_circle:圆形开算子是关键 5 *关闭...
分类:其他好文   时间:2014-09-10 17:34:51    阅读次数:308
动态规划专题
一.POJ 1157 小花店问题 dp[i][j]表示前i朵花放入前j个瓶子得到的最大价值。 因为要求j>i,所以有两种放法: (1)当i=j的时候dp[i][j]=v[1][1]+v[2][2]+v[i][j]+…… (2)当j>i的时候dp[i][j]=max(dp[i][j-1],dp[i-1][j-1]+v[i][j]); #pragma comment(linker, "/ST...
分类:其他好文   时间:2014-09-10 16:00:00    阅读次数:157
zoj 3809 水 2014 ACM牡丹江区域赛网赛
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=5341 第一题水题,水下 //#pragma comment(linker, "/STACK:102400000,102400000") #include #include #include #include #include #include #include ...
分类:其他好文   时间:2014-09-09 18:25:29    阅读次数:210
ZOJ 3817 Chinese Knot
题意:给定4个长度为N的字符串( N 2 #pragma comment(linker, "/STACK:102400000,102400000") 3 #define in freopen("F:\\rootial\\data\\data.txt", "r", stdin); 4 #def...
分类:其他好文   时间:2014-09-07 19:47:45    阅读次数:288
c语言删除注释
搬运自k&r习题解答: /* * delete comment in C */ #include<stdio.h> #define normal 0 void rcomment(int c); void in_comment(void); void echo_quote(int c); main() { int c; while ((c = getchar()...
分类:编程语言   时间:2014-09-07 17:22:35    阅读次数:862
简单的flash策略文件服务器!
最近在做一个flash小游戏,众所周知,flash连接服务器socket的时候,需要向服务器请求策略文件。以下是一个简单的策略文件服务器的代码c++: 1 #include 2 #include 3 #pragma comment(lib,"WS2_32.lib") 4 #define _CRT.....
分类:其他好文   时间:2014-09-05 23:44:32    阅读次数:271
SOME CODES
简单中转代码: 1 #include "stdafx.h" 2 #include ; 3 #include ; 4 #include ; 5 6 #pragma comment(lib, "ws2_32.lib") 7 8 #define PORT 143 9 #define...
分类:其他好文   时间:2014-09-05 15:44:41    阅读次数:216
POJ 3621 最优比例生成环
题目大意就是找到一个环使得顶点权值之和与边权之和的比率最大 首先,需要注意的是题目要求可以从任意一点开始,网上很多解题报告默认的从1点开始,虽然过了此题,但是显然是不太对的。 由于题目是求的max,那么在边权变形后,用 SPFA求最长路,看是否出现正环, 然后根据这个进行二分查找。 #pragma comment(linker, "/STACK:1024000000,102400...
分类:其他好文   时间:2014-09-04 17:00:39    阅读次数:163
正则表达式中的注释
注释(?#comment)小括号的另一种用途是通过语法(?#comment)来包含注释。例如:2[0-4]\d(?#200-249)|25[0-5](?#250-255)|[01]?\d\d?(?#0-199)。要包含注释的话,最好是启用“忽略模式里的空白符”选项,这样在编写表达式时能任意的添加空格...
分类:其他好文   时间:2014-09-04 13:07:39    阅读次数:184
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!