码迷,mamicode.com
首页 >  
搜索关键字:har    ( 17693个结果
把字符串转化成整型显示
用法./change 23456 10, 按最后指定的进制显示 #include #include #include int mystrlen(char *s) {    int len=0;    char *temp=s;    while(*(temp)!='\0')    {       ++len;       ++temp;    }    return le...
分类:其他好文   时间:2014-07-31 16:57:06    阅读次数:224
测试日志
int main(int argc, char* argv[]){ cout<<"Hello!"<<endl; return 0;}hehe
分类:其他好文   时间:2014-07-31 16:46:36    阅读次数:218
mysql表级sql语句
create table table_name ( id int unsigned primary key AUTO_INCREMENT, username varchar(32) not null, nickname varchar(16) not null default '匿名', u...
分类:数据库   时间:2014-07-31 16:43:46    阅读次数:265
gcc/g++ 参数
-static 此选项将禁止使用动态库,所以,编译出来的东西,一般都很大,也不需要什么动态连接库,就可以运行.-share 此选项将尽量使用动态库,所以生成文件比较小,但是需要系统由动态库.
分类:其他好文   时间:2014-07-31 16:33:36    阅读次数:183
java中如何将char数组转化为String
1.直接在构造String时建立。 char data[] = {'s', 'g', 'k'}; String str = new String(data); 2.String有方法可以直接转换。 String.valueOf(char[] chr)就可以。 如: char[] cha = {'s'...
分类:编程语言   时间:2014-07-31 16:23:46    阅读次数:317
不定参数的格式化
#include#includestd::string formatt(const char * format,...){ va_list args; (void)va_start(args,format); std::string retstr; size_t size = 1024; while...
分类:其他好文   时间:2014-07-31 16:23:06    阅读次数:187
140730暑期培训.txt
1、大数加减法    思路分析:        1、将数据当做字符串输入(gets(s))        2、将字符型转换为整型,逆着存            char?int      i=0,j=len-1, int[i++]=char[j--]        3、从首位开始相加,              若sum>9,int[i]=sum%10,int[i+1]+=sum/10...
分类:其他好文   时间:2014-07-31 13:26:16    阅读次数:215
自己写的加密方式
const string sNil = "'(&.&!'%&$\"'&)\" \",&)$(%#$-$#$$\" "; //'''(&.&!''%&$"''&)" ",&)$(%#$-$#$$" ' ; const string sTemp = " !\"#$%&'()*+,-....
分类:其他好文   时间:2014-07-31 12:50:37    阅读次数:185
SharePoint 2013 Apps
1. App Web & Host WebThe special website to which the app isdeployedis called an App Web. The website to which the app isinstalledis called the Host W...
分类:移动开发   时间:2014-07-31 12:46:06    阅读次数:304
按字节截取字符串
按字节截取字符串,参数:字符串,截取的字符 function getStr(str, n) { if (lenFor(str) 255) { byteLen += 2; } else { byteLen++; } } return byteLen; } else { ret...
分类:其他好文   时间:2014-07-31 12:11:56    阅读次数:215
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!