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
【HDU 1797】【水题】Match the string
#include"stdio.h" #include"
string.h
" chars[100005]; intf1(intn) { for(inti=0;i
x123654p
·
2016-04-17 21:00
c
水题
【HDU 2709】【水题】Sumsets
#include"stdio.h" #include"
string.h
" intmain(intargc,charconst*argv[]) { intn; longlongdp[1000001]; while
x123654p
·
2016-04-15 23:00
c
动态规划
水题
C语言memcpy和memmove函数的理解和区别
所需头文件:
string.h
函数原型:void*memcpy(void*dest,constvoid*src,size_tn);inta=1000;intb=0;memcpy(&b,&a,4);printf
zorrorun
·
2016-04-14 16:07
编程语言
【HDU 5082】【水题】Love
#include"stdio.h" #include"
string.h
" intmain(intargc,charconst*argv[]) { inti; charf[100]; charm[100]
x123654p
·
2016-04-11 18:00
c
水题
【HDU 2670】【背包】Girl Love Value
#include"stdio.h" #include"algorithm" #include"
string.h
" usingnamespacestd; structgirl { intl; intb;
x123654p
·
2016-04-11 18:00
c
背包
【HDU 2955】【背包问题】Robberies
#include"stdio.h" #include"
string.h
" floatmax(floata,floatb)//平时的max函数都是返回int这次返回float。忘记改了,三个点造
x123654p
·
2016-04-09 14:00
c
背包
【POJ 3306】【素数筛选】Dirichlet's Theorem on Arithmetic Progressions
看看就懂了,用一个素数先标记了所有的素数#include"stdio.h" #include"
string.h
" intprime[1000000]; voidf()//素数筛选法。。。
x123654p
·
2016-04-09 14:00
c
水题
【HDU 4727 】【水题】The Number Off of FFF
这题测试数据应该有问题,我觉得正确的代码不能a就是下面这个#include"stdio.h" #include"
string.h
" intmain(intargc,charconst*argv[]) {
x123654p
·
2016-04-09 14:00
c
水题
【HDU 4706】【水题】Children's Day
#include"stdio.h" #include"
string.h
" intmain() { inta=0; charc[100][100]; for(inti=3;i0;j--) { c[j][i
x123654p
·
2016-04-09 14:00
c
水题
【HDU 1233】【并查集】【最小生成树】还是畅通工程
#include"stdio.h" #include"
string.h
" intmain(intargc,charconst*argv[]) { intn,m,i,j,k,min,t1,t2,t3; inte
x123654p
·
2016-04-09 14:00
数据结构
c
水题
【HDU 1864】【背包】最大报销额
其实就是在于浮点数拿去放大一百倍就可以用背包存了,然后就没什么难点了#include"stdio.h" #include"
string.h
" intdp[3005000];//一开始直接用30050结果不行
x123654p
·
2016-04-09 14:00
c
背包
水题
【HDU 2141】【二分】 Can you find it?
#include"stdio.h" #include"
string.h
" #include"algorithm" usingnamespacestd; /*早就做过一次了,印象深刻,二分加两个数组压缩防止超时
x123654p
·
2016-04-09 13:00
c
数学
【HDU 1280】【水题】前m大的数
#include"stdio.h" #include"
string.h
" #include"algorithm" usingnamespacestd; inta[3005]; intb[3005*1500
x123654p
·
2016-04-09 13:00
c
水题
【POJ 2431】【优先队列】【Expedition】
#include"iostream" #include"
string.h
" #include"queue" usingnamespacestd; intmain(intargc,charconst*argv
x123654p
·
2016-04-09 11:00
数据结构
C++
poj
【POJ 3617】【贪心】Best Cow Line
#include"iostream" #include"
string.h
" usingnamespacestd; intmain(intargc,charconst*argv[]) { intflag;
x123654p
·
2016-04-09 08:00
【HDU 1004】【水题】Let the Balloon Rise
#include"stdio.h" #include"
string.h
" intmain(){ intn,i,j,max,a[1010]; chars[1010][16]; while(scanf("%
x123654p
·
2016-04-07 21:00
c
水题
【HDU 4508】【完全背包】湫湫系列故事——减肥记II
#include"stdio.h" #include"
string.h
" intmax(inta,intb) { returna>b?
x123654p
·
2016-04-07 20:00
c
水题
背包问题
【HDU 4509】【水题】湫湫系列故事——减肥记II
#include"stdio.h" #include"
string.h
" intmain(intargc,charconst*argv[]) { intnum; intans; inta[24*60+10
x123654p
·
2016-04-07 20:00
c
水题
ACM内部函数--数学问题--大数乘小数
** 语法:mult(charc[],chart[],intm); 参数:source[]:被乘数,用字符串表示,位数不限 result[]:结果,用字符串表示 m:乘数 返回值:null 注意:需要
string.h
qq_26891045
·
2016-04-07 17:00
C 数据结构与算法 散列表
/3008010这是一个系列的教程全部看完就差不多有个概念了但是还是不敢说全懂资质比较愚钝,木办法下面的是实验代码个人敲了一遍理解了一些//#include "stdafx.h" #include "
string.h
起什么name呢
·
2016-04-07 10:00
关于strlen和sizeof
strlen是函数,在库
string.h
中,用于求字符串的长度(不包括结尾符‘\0’),也可以求字符数组的长度(该数组必须以\0结尾)。sizeof是关键字。
peiyao456
·
2016-04-04 11:00
c语言字符串常用函数
用于输入输出的字符串函数,在使用前应包含头文件"stdio.h",使用其它字符串函数则应包含头文件"
string.h
"。下面介绍几个最常用的字符串函数。
u012853614
·
2016-04-01 15:00
c
函数
字符串
C语言
游戏中的角色类
#include #include"
string.h
" usingnamespacestd; classrole { public: voidsetrole(stringNAME,intBLOOD)
zhangzhangjiejie
·
2016-03-31 09:00
1212
Purpose:slevelogandconnectsaveondatabase/*definaheadfile*/#include"stdio.h"#include"stdlib.h"#include"
string.h
夏洛特丶
·
2016-03-30 20:45
it
string.h
中常用字符串操作函数
string.h
文件中函数的详细用法下面为
string.h
文件中函数的详细用法,附加实例:1、strcpy函数名:strcpy功能:拷贝一个字符串到另一个用法:char*strcpy(char*destin
qq_20916555
·
2016-03-30 18:00
筛素数法
#ifndef_PRIME_NUMBER_H_ #define_PRIME_NUMBER_H_ #include"
string.h
" #include //筛素数法 intPrimeNumber(
yvhqbat
·
2016-03-27 11:00
算法初级_1:字符
usingnamespacestd; intmain(intargs,char*argv[]) { intc1='a'; intc2='a'+3; cout #include #include"
string.h
mijian1207mijian
·
2016-03-26 12:00
memcpy与memmove
memcpy(void*dest,constvoid*src,size_tn);memmove:void*memmove(void*dest,constvoid*src,size_tn);两个函数均定义在
string.h
小止1995
·
2016-03-25 20:53
源码
memmove
c/c++ strrchr函数用法
函数简介函数名称:strrchr函数原型:char*strrchr(constchar*str,charc);所属库:
string.h
函数功能:查找一个字符c在另一个字符串str中末次出现的位置(也就是从
caimagic
·
2016-03-23 22:00
HDU1106
Solution:我们利用
string.h
中的strtok函数。这个函数可以按指定分隔
FlushHip
·
2016-03-23 17:00
函数
链表的操作
#include "stdafx.h"#include "stdio.h"#include #include "
string.h
" typedef int elemType ; /***********
这里有酒
·
2016-03-22 20:38
程序
include
元素
链表的操作
#include "stdafx.h" #include "stdio.h" #include #include "
string.h
" typedef int elemType ; /****
这里有酒
·
2016-03-22 20:38
线性表
程序
include
元素
解引用和箭头操作符
#include #include"
string.h
" #include"pointer.h" usingnamespacestd; intmain() { Strings("xiaocui");
qq_31248551
·
2016-03-22 13:00
#include
与#include<
string.h
>的区别
为什么下面这段代码#includevoidmain(){ stringaaa="abcsdd"; printf("lookingforabcfromabcdecd%s\n", (strcmp(aaa,"abc"))?"Found":"NotFound");}不能正确执行,说是string类型没有定义而下面:#includeusingnamespacestd;void
hsd2012
·
2016-03-22 11:00
hdu 2059
也就是最优方案),必须知道dp[0]到dp[n-1]设j是上一个站的充电,j从0开始循环,找出最优充电站,一直循环到n-1.然后取这里面的最小值.代码:#include"stdio.h" #include"
string.h
庸人自扰扰
·
2016-03-22 00:00
KMP
pid=1711#include"stdio.h" #include"
string.h
" #include"stdlib.h" intn,m; intnext[10011]; inta[1000111]
XerxesSimon
·
2016-03-19 20:00
KMP
ACM
HDU
C++中get()与getline()的区别
string.h
中的getline(istream,string)与cin.getline(string,streamsize)类似,但输入字符串后,回车在VC6下可能要按两次,DevC++下不会。
enjoy5512
·
2016-03-19 17:00
C语言
反转字符串的多种方式-经典面试题系列
思路很简单,就不啰嗦了,直接上代码#include"stdafx.h" #include"stdio.h" #include"stdlib.h" #include"
string.h
" char*t1(
bitcarmanlee
·
2016-03-18 11:00
面试题
C语言
C++ String类
头文件"
String.h
" #include #include using namespace std; class String { public: String(const char
木木侠
·
2016-03-17 10:26
include
public
Capacity
学生信息管理系统
//学生信息管理链表实现#include"stdio.h"#include"
string.h
"#include"stdlib.h"structstudent{ intnumber; charname[
点滴空间
·
2016-03-14 14:00
约瑟夫环问题
//约瑟夫环问题#include"stdio.h"#include"stdlib.h"#include"
string.h
"structdata{ intnumber; structdata*next;
点滴空间
·
2016-03-14 14:00
深拷贝&浅拷贝
STRING.h
文件#pragmaonce#includeclassString{public:String(char*str="")//深拷贝:_str(newchar[strlen(str)+1])
2013221
·
2016-03-12 18:19
浅拷贝
深拷贝
C++
深拷贝&浅拷贝
STRING.h
文件#pragmaonce#includeclassString{public:String(char*str="") //深拷贝:_str(newchar[strlen(str)+
2013221
·
2016-03-12 18:19
浅拷贝
深拷贝
memmove 和 memcpy的区别
memcpy和memmove()都是C语言中的库函数,在头文件
string.h
中,作用是拷贝一定长度的内存的内容,原型分别如下:void*memcpy(void*dst,constvoid*src,size_tcount
夕阳飞飞
·
2016-03-11 13:00
用函数调用的方法求字符串的最大值和最小值
#include #include"
string.h
" floatarry_maxandmin(a[10]){ inttemp,i=0,j; for(j=0;j<10;j++){ for(i=0;i<10
yuleidnf
·
2016-03-09 10:00
函数
使它读入被include语句修饰的一个文件并且输出这个文件
#defineMAXN105 voidprocess_line(constchar*filename); intmain(intargc,char**argv) { process_line("
string.h
qq789045
·
2016-03-08 23:00
bzero函数
说明:bzero无返回值,并且使用
string.h
头文件,
string.h
曾经是posix标准的一部分,但是在POSIX.1-2001标准里面,这些函数被标记为了遗留函数而不推荐使用。
qq100440110
·
2016-03-08 14:00
pat1021:个位数统计
https://www.patest.cn/contests/pat-b-practise/1021#include"stdio.h" #include"
string.h
" intmain() { inti
yang1018679
·
2016-03-08 13:00
c
pat
pat1017:A除以B
https://www.patest.cn/contests/pat-b-practise/1017#include"stdio.h" #include"
string.h
" intmain() { intb
yang1018679
·
2016-03-08 12:00
c
pat
pat1014:福尔摩斯的约会
https://www.patest.cn/contests/pat-b-practise/1014#include"stdio.h" #include"
string.h
" intmain() { inti
yang1018679
·
2016-03-08 12:00
c
pat
上一页
20
21
22
23
24
25
26
27
下一页
按字母分类:
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
其他