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语言-字符串比较
#include #include"
string.h
" #defineN1000 //查找第二个字符串是否存在于第一个字符串中,若存在返回位置,否则返回NULL char*strstr_m(char*
qiuxuewei2012
·
2012-12-12 22:00
hdu4308
2012-12-12*/#include"stdio.h" #include"
string.h
" #include"stdlib.h" #include"queue" #defineN5001 usin
Ice_Crazy
·
2012-12-12 14:00
sizeof和strlen的区别(其中涉及NUL的讲解)
一、从C语言的定义上来讲1、sizeof是关键字,而strlen是包含在
string.h
头文件中的一个计算字符串长度的函数2.sizeof操作符的结果类型是size_t,它在头文件中的typedef为unsignedint
双月鸟之roc
·
2012-12-09 00:09
c语言
sizeof和strlen的区别(其中涉及NUL的讲解)
一、从C语言的定义上来讲1、sizeof是关键字,而strlen是包含在
string.h
头文件中的一个计算字符串长度的函数2.sizeof操作符的结果类型是size_t,它在头文件中的typedef为unsignedint
hanpengyu
·
2012-12-09 00:00
c
sizeof
strlen
#include
与#include<
string.h
>的区别
为什么下面这段代码 #include <string.h> void main() { string aaa= "abcsd d"; printf("looking for abc from abcdecd %s\n",
·
2012-12-03 11:00
include
hdu1243
2012-11-30*/#include"stdio.h" #include"
string.h
" #in
Ice_Crazy
·
2012-11-30 17:00
hdu4464
2012-11-24*/#include"stdio.h" #include"
string.h
" #include"stdlib.h" intmain() { intCase=1; intn; inti
Ice_Crazy
·
2012-11-24 21:00
hdu 2955 Robberies(01背包)
dp[j]=max(dp[j],dp[j-mm[i]]*(1-pp[i]))#include"stdio.h" #include"
string.h
" #definemax(x,y)x>y?
yyf573462811
·
2012-11-24 15:00
巧用位操作
分析:该算法的时间复杂度为o(n/2)~o(n),空间复杂度为o(1)源程序代码:#include"stdio.h"#include"
string.h
"voidinvert_point(char*str
hero_hegang
·
2012-11-24 11:00
hdu1271
2012-11-22*/#include"stdio.h" #include"
string.h
" #include"stdlib.h" intn
Ice_Crazy
·
2012-11-22 16:00
hdu1713
t2);b=GCD(n1,n2); ans=a/b; 囧~ 2012-11-21*/#include"stdio.h" #include"
string.h
Ice_Crazy
·
2012-11-21 19:00
hdu1880
2012-11-20*/#include"stdio.h" #include"
string.h
" #include"stdlib.h" #define
Ice_Crazy
·
2012-11-20 14:00
hdu3046
2012-11-19*/#include"stdio.h" #include"
string.h
" #include"stdlib.h" inta[1011][2011],b[1011][2011]; intmain
Ice_Crazy
·
2012-11-19 17:00
<转>头文件string与
string.h
的区别
源地址:http://www.cnblogs.com/Cmpl/archive/2012/01/01/2309710.html 在C++中,#include<iostream>与#include<iostream.h>的区别,前者要使用更新的编译器(其实大部分编译器多比较前卫了,出了有些搞嵌入式的用变态的编译器)。 喔,原来iostream是C++的头文件,iostr
流淚的芥末
·
2012-11-19 11:00
C++
hdu2545
在网吧夜市刷题,桑不起呀,囧囧囧~~~ 2012-11-19*/#include"stdio.h" #include"
string.h
" #defineN100011
Ice_Crazy
·
2012-11-19 01:00
hdu 1864 最大报销额 (DP)
点击打开链接题目意思:01背包:dp[j]=dp[j-v[i]]+v[i]C++:#include"stdio.h" #include"
string.h
" intdp[3000001]; intv[31
yyf573462811
·
2012-11-17 12:00
hdu3485
2012-11-13*/#include"stdio.h" #include"
string.h
" #include"stdlib.h" intmain() { intn; intf[10011],a[10011
Ice_Crazy
·
2012-11-13 14:00
关于数组的一些基本操作
用法: int a[10]; memeset 需要包含的头文件
string.h
//c 或#incldue <string> //c++ memset(a,0,sizeof
tech_carl
·
2012-11-13 13:00
c++ 基本操作
标准C++实现字符串类CString
////////////////////////////////////////////////////////////////////////#include"
String.h
"#include#include
zhanjianshinian
·
2012-11-13 11:00
hdu2574
2012-11-12*/#include"stdio.h" #include"
string.h
" #include"stdlib.h" #include"math.h" structA { intnum
Ice_Crazy
·
2012-11-12 17:00
hdu2579
2012-11-12*/#include"stdio.h" #include"
string.h
" #include"stdlib.h" #include"math.h" #include"queue"
Ice_Crazy
·
2012-11-12 14:00
hdu2576
2012-11-12*/#include"stdio.h" #include"
string.h
" #include"stdlib.h" intmain() { intT; __int64n; __int64ans
Ice_Crazy
·
2012-11-12 10:00
[置顶] 关于C++虚函数自己的理解
#include"iostream.h"#include"
string.h
"classXS{public: virt
wu10045125
·
2012-11-09 00:00
sizeof与strlen的区别,以及不同元素存储的位置,以及bss段及rodata段
#include"stdio.h"#include"
string.h
"constchar*a="123456";charb[]="123456";charc[10]="123456";intmain(intargc
zxzxy1988
·
2012-11-08 22:00
hdu4460
用了字典树,不过据说更暴力的、不用字典树的,也能ac-、-III 2011-11-08*/#include"stdio.h" #include"
string.h
Ice_Crazy
·
2012-11-08 19:00
hdu4463
2012-11-08*/#include"stdio.h" #include"
string.h
" #include"stdlib.h" #include"math.h" intpre[100]; structA
Ice_Crazy
·
2012-11-08 18:00
hdu4461
2012-11-08*/#include"stdio.h" #include"
string.h
" #include"stdlib.h" intmain() { intT; intn,m; inti; intf
Ice_Crazy
·
2012-11-08 18:00
杂记之C语言函数strlen和操作符sizeof
头文件:
string.h
格式: strlen(字符数组名)功能: strlen所作的仅仅是一个计数器的工作,它从内存的某个位置(可以是字符串开头,中间某个位置,甚至是某个不确定的内存区域)开始扫描
citongke1
·
2012-11-07 15:00
杂记之C语言实现C++函数strstr
//来源于百度百科/*包含文件:
string.h
函数名:strstr函数原型:externchar*strstr(char*str1,char*str2);功能:找出str2字符串在str1字符串中第一次出现的位置
citongke1
·
2012-11-05 12:00
歌厅歌曲管理系统(转)用c语言实现的一个课程设计
完整的实现代码如下:#include"stdio.h" #include"stdlib.h" #include"
string.h
" //歌曲信息包括:歌名、演唱者、作
zxq1138634642
·
2012-10-31 21:00
hdu4451
2012-10-30*/#include"stdio.h" #include"
string.h
" intmain() { intn1,n2,n3; intans; intcount1[1111],count2
Ice_Crazy
·
2012-10-30 11:00
hdu4450
2012-10-30*/#include"stdio.h" #include"
string.h
" intmain() { intn; inti; intt; intans; while(scanf("%
Ice_Crazy
·
2012-10-30 09:00
hdu3836
2012-10-29*/#include"stdio.h" #include"
string.h
" #include"stdlib.h" #i
Ice_Crazy
·
2012-10-29 11:00
hdu2236
~~~ 注意把二分搜索当外循环、枚举当内循环,否则反过来的话有可能超时哦~ 2012-10-29*/#include"stdio.h" #include"
string.h
Ice_Crazy
·
2012-10-29 10:00
C标准库函数::
string.h
::strlen的实现
size_t /* 返回字符串的长度 */ my_strlen( const char* src /* 被计算长度的字符串 */ ) { const char* ptr = src; /* 定义一个指针指向源字符串 */ while(*ptr) /* 把指针 ptr 定位到源字符串的结尾的'\0'处 */ ++p
·
2012-10-28 17:00
String
C库函数学习(一) <
string.h
>
strlen:返回字符串的长度(0值表示字符串结尾) size_tstrlen(char*str); 必须保证字符串以0结尾,否则函数会一直检查,直到遇见0为止,如果至字符串的结尾仍没有检查到0,则会越界检查,但它不会改变越界内存的值。strcpy:把from所指由'\0'结束的字符串复制到to所指的数组中 char*strcpy(char*to,constchar*from); 目的字符串的长度
keynumber
·
2012-10-27 01:00
C标准库函数::
string.h
::strcpy
/*
string.h
-> strcpy */ char* /* 返回目标字符数组地址 */ my_strcpy( char* dst, /* 目标字符数组 */
·
2012-10-26 15:00
String
hdu3308
2012-10-26*/#include"stdio.h" #include"
string.h
" #include"stdlib.h" structSegTree { intl,r,mid; intl_max
Ice_Crazy
·
2012-10-26 11:00
strlen与sizeof区别
#include"stdio.h"#include"
string.h
"voidmain(){charaa[10];printf("%d",strlen(aa));printf("%d",sizeof(aa
liuxd3000
·
2012-10-25 10:00
C++标准库中的数学函数
cstdlib.h、cstring.h、cfloat.h 所以只要加头文件#include、#include、#include、#includeC中数学函数,所在函数库为math.h、stdlib.h、
string.h
tyf122
·
2012-10-24 16:00
hdu1269
2012-10-24*/#include"stdio.h" #include"
string.h
" #include"stdlib.h" #include"queue" usingnamespacestd
Ice_Crazy
·
2012-10-24 12:00
str比较函数: strspn, strcasestr, strstr等
strspn(返回字符串中第一个不在指定字符串中出现的字符下标)头文件#include函数定义size_tstrspn(constchar*s,constchar*accept)包含文件:
string.h
hzraymond
·
2012-10-24 09:00
hdu4430
网上有各种神牛的解释,菜鸟就不废话了,囧~~~ 2012-10-23*/#include"stdio.h" #include"
string.h
" #include"stdlib.h
Ice_Crazy
·
2012-10-23 19:00
hdu4422
2012-10-22*/#include"stdio.h" #include"
string.h
" #include"stdlib.h" intmain() { intn,num[11]; inti,l,
Ice_Crazy
·
2012-10-22 19:00
ini
hdu 1995 汉诺塔V
点击打开链接dp[i][j]表示共有i个圆盘的汉诺塔,第j个最少移动的次数dp[i][j]=dp[i-1][j]*2;#include"stdio.h" #include"
string.h
" #include"math.h
yyf573462811
·
2012-10-22 13:00
hdu2216
还好1A了,囧~~~ 2012-10-21*/#include"stdio.h" #include"
string.h
" #include"stdlib.h
Ice_Crazy
·
2012-10-21 13:00
hdu4217
2012-10-20*/#include"stdio.h" #include"
string.h
" #include"stdlib.h" structSeg { intl
Ice_Crazy
·
2012-10-20 19:00
hdu3743
2012-10-19*/#include"stdio.h" #include"
string.h
" #include"stdl
Ice_Crazy
·
2012-10-19 14:00
hdu2600
一次遍历KO掉,囧~ 2012-10-18*/#include"stdio.h" #include"
string.h
" #in
Ice_Crazy
·
2012-10-18 20:00
HDU 1251
//字典树的代码,基础字典树#include"stdio.h" #include"
string.h
" #include"stdlib.h" structdictree { structdictree*
Scythe666
·
2012-10-18 08:00
上一页
33
34
35
36
37
38
39
40
下一页
按字母分类:
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
其他