码迷,mamicode.com
首页 >  
搜索关键字:str    ( 67828个结果
MFC中利用CString和Format成员函数将数字格式化输出
str.Format("格式控制字符串”,输出列表);格式控制字符串包括格式字符串和非格式字符串,用双引号括起来。其中非格式字符串原样输出。格式字符串是以%开头的字符串:%[标识][输出最小宽度][精度]转换说明符。常用转换说明符:d,整型;f,浮点型,双精度;e,指数形式输出,双精度;s,输出字符...
分类:编程语言   时间:2014-10-12 18:27:08    阅读次数:196
HDU 2643
(第二类斯特林数*N的阶乘 )的和。#include #include #include #define LL __int64#define MOD 20090126using namespace std;LL str[101][101];LL con[101];void initial(){ co...
分类:其他好文   时间:2014-10-12 15:36:28    阅读次数:156
HDU 2512
水题#include #include #include #define LL __int64#define MOD 1000using namespace std;LL str[2001][2001];void initial(){ for(LL i=0;i=1) str[i][j]=0; e.....
分类:其他好文   时间:2014-10-12 15:12:28    阅读次数:136
setjmp与longjmp
这里有编写了很好的文章:http://blog.csdn.net/cscmaker/article/details/7584433,我自己试了一个小例子。 #include?<setjmp.h> #include?<stdio.h> void?my_print(const?char?*str,?jmp_buf?jb) { ??...
分类:其他好文   时间:2014-10-12 13:51:28    阅读次数:152
POJ 3088
已知n,求n中取k(k#include #include #define LL __int64using namespace std;LL con_mul[15],Str[15][15];void initial(){ con_mul[0]=1; for(LL i=1;i=1){ Str[i]...
分类:其他好文   时间:2014-10-12 11:43:17    阅读次数:174
HDU 5059 Help him(细节)
HDU 5059 Help him 题目链接 直接用字符串去比较即可,先判断原数字正确不正确,然后写一个判断函数,注意细节,然后注意判掉空串情况 代码: #include #include const int N = 105; char n[N], a[N], b[N]; bool judge(char *str) { int len = strlen(str);...
分类:其他好文   时间:2014-10-12 00:47:27    阅读次数:294
NSArray方法亲测
#import NSInteger sortType(id st,id str,void *cha){ NSString *s1 = (NSString *)st; NSString *s2 = (NSString *)str; if(s1.length > s2.length) { retur.....
分类:其他好文   时间:2014-10-11 23:15:36    阅读次数:262
JAVASCRIPT 验证计算中英文混合字符串长度的解决
方法一:采用escape函数折叠展开javascript代码复制内容到剪贴板functioncnLength(Str){varescStr=escape(Str);varnumI=0;varescStrlen=escStr.length;for(i=0;i=0)&&(strTemp.charCode...
分类:编程语言   时间:2014-10-11 22:26:56    阅读次数:167
Django开发经验
自己在开发过程中遇到的一些问题,记录下来,持续更新中......1.跳过key不为str json.dumps(data,skipkeys=True)2.nothing版本兼容if hasattr(request, 'raw_post_data'):#django<1.4if request.raw...
分类:其他好文   时间:2014-10-11 20:33:46    阅读次数:187
JS中常用函数总结
//LTrim(string):去除左边的空格 function LTrim(str) { var whitespace = new String(" \t\n\r"); var s = new String(str); if (whitespace...
分类:Web程序   时间:2014-10-11 19:01:06    阅读次数:161
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!