E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
string.h
C++大小写字母转换函数
字母大小写转换函数的声明包含在
string.h
头文件中,函数的原型如下:char*strupr(char*string)功能:将字符串string中的小写字母转换为大写,并返回指向string的指针。
nt05的记事本
·
2008-06-16 05:00
不调用C库函数
string.h
实现字符串的连接
最近在学VC++,留下笔记,好以后如果有用,可以不用重新写,如果他人觉得有用,可以转载,但请注明出处,谢谢! //--------------------------------------------------------------------//功能:求字符串的长度,不包括'/0'//返回:ch_string所指字符串的长度//作者:heshanxingzhe-080610//此函数旨在
heshanxingzhe
·
2008-06-13 23:00
c
String
存储
[置顶] PL0文法编译器C语言源代码
#include"stdio.h"#include"
string.h
"#include"stdlib.h"#include"ctype.h"#ifndefTRUE#defineTRUE1#endif#ifndefFALSE
njdragonfly
·
2008-05-16 19:00
c
struct
Integer
Arrays
语言
编译器
C语言大整数想乘之模拟人工计算
C语言大整数想乘之模拟人工计算#include "
string.h
"// use for strlen function#include "stdio.h"#include "stdlib.h"#define
Code Life
·
2008-04-25 15:00
pku-2041
id=2041#include "
string.h
"#include "stdio.h"char s[26];char q[7];void A(char str[],int len){ int i
算法与程序--游戏与玩乐
·
2008-04-09 12:00
今天帮一个网友写的两个c语言程序
\\字符串逆序输出#include"stdio.h"#include"
string.h
"#include"malloc.h"char*revstr(char*str){ intiLe
motian85
·
2008-03-28 22:52
c
字符串
输出
逆序
编译原理课程设计_C--编译器_语法分析&代码生成 - Justin
导读:%{#include"ctype.h"#include"
string.h
"#include"stdio.h"#include"stdlib.h"#defineHASHSIZE256#defineGLOBAL0typedefintType
chief1985
·
2008-03-27 23:00
编译原理
pku-1131
id=1131#include "stdio.h"#include "
string.h
"int myDivide(int *a,int len){ int i=0; int residue=
算法与程序--游戏与玩乐
·
2008-03-22 19:00
字符串倒序c语言实现
#include"
string.h
"main(){ constchar*src="helloworld"; intlen=strlen(src); char*dest=(char*)malloc
Dreamcode
·
2008-03-21 15:00
c
语言
include
一个动态的栈实现的括号匹配程序
#include"stdio.h"#include"stdlib.h"#include"
string.h
"typedefstruct_tegstackitem{ charparam; int index
lziog
·
2008-03-02 15:00
MarkSix calculator
#include"iostream"#include"
string.h
"#include"iostream"#include"fstream"#include#includeusingnamespacestd
ZhengKarl
·
2008-02-06 01:00
Algorithm
struct
String
vector
include
iostream
linux动态链接库的创建和使用
作者:yacsha 和Windows系统一样Linux也有静态/动态链接库,下面介绍创建和使用方法:假设有下面几个文件:头文件
String.h
,声明相关函数原形,内容如下:Strlen.c:函数Strlen
dongzhongshu
·
2008-01-14 11:00
重写
string.h
中的字符串操作函数--strspn和strcspn
函数原型:size_tstrspn(constchar*string,constchar*strcharset)返回值说明:返回一个整形值,指明字符串strcharset中开头的字符有多少指定的字符。如果返回0说明,在字符串string中未找到指定的字符。参数说明: string:以'/0'结尾的字符串。 strcharset:指定的字符串,以'/0'结尾。函数说明: 用来计算字符串string
liam1122
·
2007-12-29 10:00
c
String
null
重写
string.h
中的字符串操作函数--strlen,strlen 与sizeof的区别
函数原型:size_tstrlen(constchar*str)返回值:返回字符串中字符的个数,不包括结束符'/0'。如果没有返回值表示出现错误;参数说明:str:以'/0'为结束符的字符串。函数实现:size_t strlen(const char *str){ assert(NULL != str); const char *tmp = str; for(;tmp != ''; ++tmp)
liam1122
·
2007-12-24 18:00
null
平台
Linux静态/动态链接库的创建和使用
和Windows系统一样Linux也有静态/动态链接库,下面介绍创建和使用方法:假设有下面几个文件:头文件
String.h
,声明相关函数原形,内容如下:Strlen.c:函数Strlen的实现,获取给定字符串的长度
freedomsky120
·
2007-12-24 11:00
C语言版的单位法人代码校验函数
当作怀旧,贴出这个十多年前C语言函数代码,现临时写了个演示程序: #include < stdio.h > #include <
string.h
> #include
sogotobj
·
2007-12-21 23:00
C++
c
C#
重写
string.h
中的字符串操作函数--memmove、memcpy
函数原型:void*memmove(void*dest,constvoid*source,size_tcount)返回值说明:返回指向dest的void*指针参数说明:dest,source分别为目标串和源串的首地址。count为要移动的字符的个数函数说明:memmove用于从source拷贝count个字符到dest,如果目标区域和源区域有重叠的话,memmove能够保证源串在被覆盖之前将重叠区
liam1122
·
2007-12-20 11:00
null
重写
string.h
中的字符串操作函数--strchr
函数原型:char*strchr(constchar*str,charch);返回值:返回一个指针,该指针指向字符ch第一次出现的位置,如果在str中未找到ch ,则返回NULL参数说明:str:以'/0'结尾的字符串。ch:待查找的字符函数说明: 另一种形式为:char*strchr(constchar*str,intn);字符串结束符也包含在查找之列。函数实现:char*strchr(cons
liam1122
·
2007-12-18 14:00
null
重写
string.h
中的字符串操作函数--strncmp
函数原型:intstrncmp(constchar*str1,constchar*str2,size_tn);返回值:返回整形值:如果str1>str2,返回值大于0;如果str1=str2,返回值等于0;如果str1
liam1122
·
2007-12-18 14:00
null
数据结构 外部排序 多路归并排序
(1)代码如下:merge.c#include"c1.h"#include"c2.h" #include"stdio.h"#include"stdlib.h"#include"
string.h
" /*k
nomad2
·
2007-12-15 20:00
重写
string.h
中的字符串操作函数--strcmp
函数原型:intstrcmp(constchar*dest,constchar*source) ;返回值:返回整数值,如果dest>source,则返回值大于0,如果dest=source,则返回值等于0,如果destsource,则返回值大于0,如果dest=source,则返回值等于0,如果dest < source,则返回值小于0。*/}
liam1122
·
2007-12-14 18:00
null
重写
string.h
中的字符串操作函数--strncat
函数原型:char*strncat(char*dest,constchar*source,size_tsize)返回值: 返回指向目标串dest首地址的指针,返回NULL表示出错。参数说明: dest:以'/0'为结束符的字符串 source:以'/0'为结束符的字符串 size:要连接到dest末尾的字符的个数函数作用:把source开始的size个字符连接到dest的结
liam1122
·
2007-12-14 18:00
重写
string.h
中的字符串操作函数--strcat
函数原型:char*strcat(char*dest,constchar*source)返回值:返回值目标串的首地址,如果操作失败则返回NULL传输说明: dest:以'/0'为结束符的字符串 source:以'/0'为结束符的字符串作用:将字符串source连接到dest字符串的末尾,并将dest的结束符'/0'覆盖。在执行连接的过程中,并不会检测是否溢出,而且对于source和d
liam1122
·
2007-12-13 13:00
重写
string.h
中的字符串操作函数--strcpy
函数原型:char*strcpy(char*dest,constchar*source);参数声明:dest指向目标串的首地址,source指向源串的首地址返回值:返回目的串dest的首地址,这样的目的是实现链式表达,如intlen=strlen(strcpy(dest,"hello"));。函数功能:把source所指的以“/0”结束的字符串复制到dest所指的数组中。 实现:char *str
liam1122
·
2007-12-11 16:00
null
重写
string.h
中的字符串操作函数--strncpy
本文重写了
string.h
中的一些函数,参考了linux/lib/string.c中的函数原型和MSDN中函数的定义。
liam1122
·
2007-12-06 14:00
C语言中String库详释(zz)
这里详细注释了
String.h
中的所有函数。以下内容摘自《C程序设计教程》(美)H.M.DeitelP.J.Deitel著,薛万鹏等译,机
dycwahaha
·
2007-12-01 22:00
Linux静态/动态链接库
和Windows系统一样Linux也有静态/动态链接库,下面介绍创建和使用方法:假设有下面几个文件:头文件
String.h
,声明相关函数原形,内容如下:Strlen.c:函数Strlen的实现,获取给定字符串的长度
adcxf
·
2007-11-30 00:00
linux socket编程服务端模型(用getaddrinfo)
/types.h"#include"sys/socket.h"#include"netinet/in.h"#include"arpa/inet.h"#include"stdio.h"#include"
string.h
adcxf
·
2007-11-25 20:00
linux socket编程客户端模型(用getaddrinfo)
#include"sys/socket.h" #include"netinet/in.h" #include"arpa/inet.h" #include"stdio.h" #include"
string.h
adcxf
·
2007-11-25 20:00
编程
linux
socket
struct
server
null
字符串排序
字符串排序试题的答案,试题请参考附件 #include"stdio.h"#include"
string.h
"voidstrsort(charstr[][20],intn); //声明排序函数voidmain
youxue
·
2007-11-19 21:20
排序
字符串
职场
休闲
字符串排序
字符串排序试题的答案,试题请参考附件#include"stdio.h"#include"
string.h
"voidstrsort(charstr[][20],intn);//声明排序函数voidmain
youxue
·
2007-11-19 21:20
职场
字符串
程序设计
从一个貌似重载失败的例子,看虚函数的作用
//#include "stdafx.h"#include "stdio.h"#include "stdlib.h"#include "
string.h
"// class Baseclass Base.
moreorless
·
2007-11-06 17:00
System
Class
bcb中的dll调用dll例子
bcb中的dll调用dll例子#include#include"
string.h
"#include"Decode.h"#pragmaargsusedtypedefint(__stdcall*fun_AddFun
HelloWorld 善战者,求之于势,不责于人;故能择人而任势。
·
2007-11-05 15:00
系列C++问题请教高手之九:buffer overflow
#include "
string.h
"#inclu
ZhengKarl
·
2007-10-29 14:00
C++
汇编
gcc
buffer
编译器
loops
哈夫曼编码[tc]
#include "stdio.h"#include "stdlib.h"#include "conio.h"#include "
string.h
"#include "ctype.h"/********
eaglewood2005
·
2007-09-29 13:00
c
File
null
FP
encoding
initialization
ACM PKU 1936 All in All 字符串处理
id=1936其实我是比较讨厌字符串处理的题目的,因为在C++里面没办法使用C的
string.h
,而且直接使用C++的string类又不太灵活;让我在VC++里用C写处理字符串的程序,确实很尴尬,因为我宁愿用的原始的字符指针
AClayton's ACM/ICPC Life 只切菜题 菜鸟乱飞
·
2007-09-21 02:00
Linux静态/动态链接库的创建和使用
和Windows系统一样Linux也有静态/动态链接库,下面介绍创建和使用方法:假设有下面几个文件:头文件
String.h
,声明相关函数原形,内容如下:Strlen.c:函数Strlen的实现,获取给定字符串的长度
perddy
·
2007-09-13 13:00
windows
Date
linux
gcc
null
library
在windows 中的转变:wcslen
strlen函数的宽字符版是wcslen(wide-character string length:宽字符串长度),并且在
STRING.H
(其中也说明了strlen)和WCHAR.H中均有说明。
iwebcode
·
2007-09-03 18:00
windows
在windows 中的转变:wcslen
strlen函数的宽字符版是wcslen(wide-characterstringlength:宽字符串长度),并且在
STRING.H
(其中也说明了strlen)和WCHAR.H中均有说明。
Athenaer
·
2007-09-03 18:00
c
windows
String
遍历文件目录 (将目录存到List里)
遍历文件目录 CFileList.h:#include"iostream.h"#include"afx.h"#include"
string.h
"#include"windows.h"classCFileList
sendy888
·
2007-07-25 14:00
list
File
Class
Path
AIX下用xlcl编译以及使用.so的方法
AIX下通常用xlC来编译c++代码,例如我写了一个string的类,包含俩文件
string.h
和string.cpp,现在我想将其编译成动态链接库(.so文件),方法为:xlC-G-olibstring.sostring.cppAIX
mrcjiong
·
2007-06-29 12:00
thread
String
AIX
Path
compiler
output
C++版--链表
#include"head.h"#include"iostream.h"#include"
string.h
"typedefcharElemType;typedefstructLNode{ ElemTypedata
foxhack
·
2007-06-22 10:15
C++
链表
职场
休闲
C++版--链表
#include"head.h"#include"iostream.h"#include"
string.h
"typedefcharElemType;typedefstructLNode{ ElemTypedata
foxhack
·
2007-06-22 10:15
C++
链表
职场
休闲
C++版--链表
C++版--链表#include"head.h"#include"iostream.h"#include"
string.h
"typedefcharElemType;typedefstructLNode{
编程小区
·
2007-06-07 19:00
char *和char [ ]的区别(ZT)
见程序如下:#include"stdafx.h"#include"
string.h
"#include"stdio.h"intmain(intargc,char*argv[]){ charsource
酒水不犯茶水
·
2007-05-31 13:00
C函数库介绍:
string.h
、mem.h
操作函数,所在函数库为
string.h
、mem.hmem…操作存贮数组void*memccpy(void*destin,void*source,unsignedcharch,unsignedn)void
strollerV
·
2007-05-20 01:00
c
null
Calculate 1 plus to 100 by Using C++
100likethis:(1+100)*100/2=5050Nowinmytwenties IcalculateditbyUsingC++asbelow:#include"iostream"#include"
string.h
ZhengKarl
·
2007-05-19 21:00
fstream 操作二进制文件
fstream操作二进制文件#include "stdafx.h" #include "
string.h
" #include "iostream.h" #include #include
网络服务器软件开发/中间件开发,关注ACE/ICE/boost
·
2007-04-29 18:00
密码程序
用C编写的简单密码程序 #include"stdio.h"#include"
string.h
"#include"stdlib.h"voidpassword(char*pass){charpassword
han_348154920
·
2007-04-21 12:00
C语言专题――标准库<
string.h
>
C语言专题――标准库1复制 char* strcpy(char*s1,constchar*s2);将字符串s2复制到s1指定的地址 char* strncpy(char*s1,constchar*s2,size_tlen);void* memcpy(void*s1,constvoid*s2,size_tlen);将s2的前len个字符(字节)复制到s1中指定的地址,不加'\0' void* mem
virus
·
2007-04-10 22:17
职场
C语言
语言
休闲
专题
上一页
41
42
43
44
45
46
47
48
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他