1 // typesize.c -- 输出类型的大小 2 #include 3 int main(void) 4 { 5 //C99为类型大小提供一个%zd说明符 6 7 printf("Type int has a size of %u bytes. \n", sizeof(...
分类:
其他好文 时间:
2014-06-28 23:13:47
阅读次数:
245
create function fn_Getquanpin(@str varchar(100))returns varchar(8000)asbegin declare @re varchar(8000),@crs varchar(10) declare @strlen int select @s....
分类:
数据库 时间:
2014-06-28 13:18:16
阅读次数:
371
题目描述:在一个字符串(1#include int main(){ int i; char c[10000]; int cnt[24]; while(scanf("%s",&c)!=EOF){ memset(&cnt,0,sizeof(int)*24); ...
分类:
其他好文 时间:
2014-06-28 12:31:02
阅读次数:
231
1.欧拉筛法在线性时间内求素数以及欧拉函数代码: 1 procedure get; 2 var i,j,k:longint; 3 begin 4 tot:=0; 5 fillchar(check,sizeof(check),false); 6 for i:=2 to n do 7 be...
分类:
其他好文 时间:
2014-06-25 22:11:51
阅读次数:
574
static byte[] GetBytes(string str){ byte[] bytes = new byte[str.Length * sizeof(char)]; System.Buffer.BlockCopy(str.ToCharArray(), 0, bytes, 0, ...
分类:
其他好文 时间:
2014-06-24 14:15:24
阅读次数:
145
// 加密function encrypt($str) { return base64_encode($str.AUTH_KEY);}// 解密function decrypt($str) { $info = base64_decode($str); $len = strlen(A...
分类:
其他好文 时间:
2014-06-24 13:41:10
阅读次数:
237
一、文字常量区域
#include
int main()
{
char *p = "hello";
int i = 0;
for(i = 0;i<6;i++)
{
printf("%c",*(p+i));
}
*p = '1';
}
大家分析验证以上代码,p 是一个指针变量,存储地址,“hello”是一个字符串占6个字节,当我们用printf的时候能够输出"hello...
分类:
其他好文 时间:
2014-06-22 09:32:20
阅读次数:
200
//调用neroAacEnc.exe STARTUPINFO si={0}; PROCESS_INFORMATION pi={0};//隐藏窗口 si.cb=sizeof(si); si.dwFlags= STARTF_USESHOWWINDOW| STARTF_USESTDHANDLES;...
分类:
其他好文 时间:
2014-06-20 21:29:11
阅读次数:
268
1. sizeof(literal-string) is number of bytes plus 1 (NULL is included), while strlen(literal-string) is number of bytes.2. Printf and scanf formatBefo...
分类:
其他好文 时间:
2014-06-18 10:14:22
阅读次数:
226
本文是笔者对printf的一种全新的尝试,自己发现了一些printf与众不同的功能...
分类:
其他好文 时间:
2014-06-18 00:59:35
阅读次数:
195