- 博客(10)
- 收藏
- 关注
原创 DBMS char nchar varchar nvarchar 区别
nchar,char,varchar 与nvarchar区别 char类型: 对英文(ASCII)字符占用1个字节,对一个汉字占用2个字节,CHAR存储定长数据很方便,CHAR字段上的索引效率级高,比如定义 char(10),那么不论你存储的数据是否达到了10个
2011-09-14 18:52:02 268
原创 stlen()
strlen() 下面几种实现strlen函数的源代码大家参考 -------------------------------------------------1:start------------------------------------ #
2011-09-14 18:35:28 1040
原创 memset()
memest原型 (please type "man memset" in your shell) void *memset(void *s, int c, size_t n); memset:作用是在一段内存块中填充某个给定的值,它对较大的结构体或数组进行清零操作的
2011-09-14 17:22:49 291
原创 1.2.2...
做错了。 回文: 3 olleh !dlrow m'I morf .udh I ekil .mca Sample Output hello world! I'm from hdu. I like acm.
2011-09-14 16:36:01 402
原创 seach_bin(a[10],m);。。引发的血案。
#include #include using namespace std; int seach_bin(int t[],int k) { int low,high,mid; low = 1; high = 10; while(low {
2011-09-08 16:41:41 661
原创 寻找子串
大体格式: #include #include #include #include using namespace std; int main () { int n,m,i,j,sign; bool b = false; char *p,*q;
2011-09-08 16:10:31 319
原创 中间数
#include #include #include using namespace std; int main () { int a[110],i,n; while(cin>>n,n) { for( i = 0; i { cin
2011-09-08 15:56:50 291
原创 cin.getline().积累
1.cin.getline是读入一行字符,比如: #include void main() { char str[20]; cout cin.getline(str,20); cout } 当输入:abd cdrasdf g的时候就会输出:abd
2011-09-08 15:08:15 490 2
原创 scanf/ 格式化说明符/各种进制的分别读入、
/*函数名: scanf 功 能: 执行格式化输入 用 法: int scanf(char *format[,argument,...]); scanf()函数是通用终端格式化输入函数,它从标准输入设备(键盘) 读取输入
2011-09-08 14:56:28 793
原创 2381.字符串的操作。string(长度,‘所需输出的内容’)
#include #include using namespace std; int main() { int n,i; while(cin>>n,n) { for(i=1;i cout for(i=1
2011-09-08 14:35:38 282
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人