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
stdlib
windows下iocp的简单代码
server #include <WinSock2.h> #include <windows.h> #include <stdio.h> #include <
stdlib
.h
·
2015-11-12 21:50
windows
C/C++产生随机数
RAND_MAX定义在
stdlib
.h, 其值为2147483647
·
2015-11-12 21:39
c/c++
C语言一些常用内存分配函数
首先看个问题程序(这里用的是TC编译器): #include "
stdlib
.h" #include "stdio.h" void main() {
·
2015-11-12 21:36
内存分配
数据结构——栈的基本操作
删除栈顶元素,遍历栈,清空栈等基本操作 */ 1 #include <stdio.h> 2 #include <malloc.h> 3 #include <
stdlib
.h
·
2015-11-12 20:25
数据结构
C语言——学生成绩管理系统
19 4 Copyright 2011 5 *********************** */ 6 7 #include <stdio.h> 8 #include <
stdlib
.h
·
2015-11-12 20:20
C语言
POJ-1088-滑雪
因为这要重复计算很多次,优化一下,将搜索过的点记录下来,避免重复计算即可 超时的代码 #include<stdio.h> #include<string.h> #include<
stdlib
.h
·
2015-11-12 20:58
poj
高精度
pid=1002 简单的大数相加,用字符串模拟即可 #include<stdio.h> #include<string.h> #include<
stdlib
.h>
·
2015-11-12 20:41
精度
HDU-2553-N皇后问题
pid=2553 基本的DFS,感觉DFS就像求全排列一样 #include<stdio.h> #include<string.h> #include<
stdlib
.h
·
2015-11-12 20:40
HDU
HDU-1225-Football Score
,网速也变成4M的了,好爽哇 这题就是字符串的模拟,注意细节就好 #include<stdio.h> #include<string.h> #include<
stdlib
.h
·
2015-11-12 20:37
core
布线问题 n 38 最小生成树
楼间的最小生成树加外界的最小进入就行 #include<stdio.h> #include<
stdlib
.h> #include<limits.h> typedef
·
2015-11-12 20:32
最小生成树
平衡二叉树所涉及的一些算法
今晚整那个ubuntu,什么也没弄成,唉,把算法先保留一下吧, 插入函数还没理解透彻呢 #include<stdio.h> #include<
stdlib
.h> #define
·
2015-11-12 20:30
二叉树
顺序栈的基本操作实现
是用来记录栈 的长度的,其实,这个变量可以不要,只是刚开始写时 给它加上了,所以就按这样写了,感觉跟顺序表的写法 差不多 #include<iostream> #include<
stdlib
.h
·
2015-11-12 20:01
基本操作
线性表的顺序表示
线性表的顺序表示终于马马虎虎的勉强写完了, 写的不是很完整,开始时比较不理解就是动态分 配内存,现在懂一点点了,数据结构落下很多了, 这几天要好好整了 #include<iostream> #include<
stdlib
.h
·
2015-11-12 20:00
线性表
zoj 2100 Seeding
时间有限,打住 #include<stdio.h> #include<
stdlib
.h> #inclu
·
2015-11-12 20:57
ZOJ
数字的全排列 问题
这个不解释,DFS的经典应用,不过很容易超时 最好用文件输出,貌似dev上显示的排列不全 #include<stdio.h> #include<
stdlib
.h> #include
·
2015-11-12 20:54
全排列
zoj 1091 Knight Moves
还值得小高兴一下,呵呵 我的第一道宽度优先搜索 注意横纵坐标及从'a''1'开始的吧 感觉是个好题 不过不会c++很吃力啊*/ #include<stdio.h> #include<
stdlib
.h
·
2015-11-12 20:53
move
zoj 2165 Red and Black
这个题应该算是有一点简单,不过我调了好长时间 #include<stdio.h> #include<
stdlib
.h> #include<
·
2015-11-12 20:52
ZOJ
nyoj 44 子串和
的很无语当然我知道那是因为我的原理不正确,有的情况没有考虑;后来才用的下边的方法,简单易行,不过数组开得有点小虾仁,这个题使我不敢再小嘘任何题 #include<stdio.h> #include<
stdlib
.h
·
2015-11-12 20:51
OJ
zoj 1789 The Suspects
这道题是并查集的题,写过这道题之后,我明白了一点,就是从根上改变所属father域 #include<stdio.h> #include<
stdlib
.h> #include
·
2015-11-12 20:50
ZOJ
zoj 1914 Arctic Network
快排................................ 3,并查集找结点,并记录边长大小 4,输出所求数据 #include<stdio.h> #include<
stdlib
.h
·
2015-11-12 20:49
NetWork
zoj 1889 Ones
这个数很难保存到 一个long long 型的变量中,所以考虑取模公式,还算是一道简单题吧,不过这上午半天就做了这一道题, 难受 #include<stdio.h> #include<
stdlib
.h
·
2015-11-12 20:48
one
矩形嵌套问题
#include<stdio.h> #include<
stdlib
.h> #include<string.h> #include<math.h
·
2015-11-12 20:47
问题
zoj 1406 Jungle Roads
我通常都是这样写的1.把边存起来2.快排3.并查集 呵呵,过了,还行吧,对了输入注意用scanf 中的%d前加一个空格 #include<stdio.h> #include<
stdlib
.h
·
2015-11-12 20:46
ZOJ
zoj 2704 Brackets
标号差值与序列的长 度相关,然后从small 到big输出,只知道 当时很纠结 #include<stdio.h> #include<string.h> #include<
stdlib
.h
·
2015-11-12 20:45
rack
素数环问题
DFS,好像主要是对dfs的递归调用吧,自己也不太懂, 总之,它很神奇,多看看代码吧 #include<stdio.h> #include<
stdlib
.h>
·
2015-11-12 20:45
问题
malloc、free用法
malloc用法 需要包含头文件: #include '
stdlib
.h' 函数声明(函数原型): void *malloc(int size); 说明:malloc 向系统申请分配指定size
·
2015-11-12 20:55
malloc
平时各种小段代码的收集(二)
的阶乘算法 #include "stdio.h" #include "
stdlib
.h" #include "string.h" typedef
·
2015-11-12 20:39
代码
算术表达式的转换
pid=2484&cid=1182 写的代码很复杂 先转换成后缀式再建立表达式树 1 #include <stdio.h> 2 #include <
stdlib
.h
·
2015-11-12 20:23
表达式
父类 子类
允许,父类的指针直接指向子类的对象,或者父类引用子类: #include<iostream> #include<stdio.h> #include<
stdlib
.h
·
2015-11-12 20:04
父类
HDU 1850 Being a Good Boy in Spring Festival
/* Nim模型 */ #include<stdio.h> #include<string.h> #include<
stdlib
.h> const int
·
2015-11-12 19:35
spring
国庆七天乐 Day3
#include<stdio.h> #include<string.h> #include<
stdlib
.h>
·
2015-11-12 19:29
a
编写windows版ANE
1.编写WinANE.dll: #include <windows.h> #include <
stdlib
.h> #include <FlashRuntimeExtensions.h
·
2015-11-12 19:04
windows
普林斯顿大学算法课 Algorithm Part I 学习资源
表:http://findbugs.sourceforge.net/bugDescriptions.html 老师提供的包:http://introcs.cs.princeton.edu/java/
stdlib
·
2015-11-12 19:21
Algorithm
atoi()、inet_addr()等函数 time.h文件
包含在头文件
stdlib
.h中 2、inet_addr inet_addr
·
2015-11-12 19:26
time
关于MFC下检查和消除内存泄露的技巧
若要启用调试堆函数,请在程序中包括以下语句: #define CRTDBG_MAP_ALLOC#include <
stdlib
.
·
2015-11-12 19:18
内存泄露
杭电 2020 绝对值排序
#include<stdio.h> #include<string.h> #include<
stdlib
.h> #include<math.h>
·
2015-11-12 19:13
排序
冒泡排序
#include<stdio.h> #include<
stdlib
.h> #include<string.h> int n,set[110]; void Bu_sort
·
2015-11-12 19:13
冒泡排序
二分查找(有序表的查找)
#include<stdio.h> #include<string.h> #include<
stdlib
.h> int n,set[110],a; int erfen_search
·
2015-11-12 19:12
二分查找
顺序查找
#include<stdio.h> #include<string.h> #include<
stdlib
.h> int n,set[110],a; int s_search
·
2015-11-12 19:11
顺序
插入排序(直接插入排序)
#include<stdio.h> #include<string.h> #include<
stdlib
.h> int n,a[110]; void d_insertsort
·
2015-11-12 19:11
插入排序
杭电 1108 最小公倍数
#include<stdio.h> #include<string.h> #include<
stdlib
.h> int gcd(int x,int y) {
·
2015-11-12 19:09
杭电
杭电 2087 剪花布条
以下为正确代码: #include<stdio.h> #include<string.h> #include<
stdlib
.h> char a[1010],
·
2015-11-12 19:07
杭电
杭电 1711 Number Sequence
#include<stdio.h> #include<string.h> #include<
stdlib
.h> int a[1000010],b[10010];
·
2015-11-12 19:06
sequence
位运算(左移&&右移)
#include<stdio.h> #include<string.h> #include<
stdlib
.h> int main() { int a
·
2015-11-12 19:04
位运算
杭电 1171 Big Event in HDU
#include<stdio.h> #include<string.h> #include<
stdlib
.h> int main() { int n
·
2015-11-12 19:04
event
杭电 2079 选课时间(题目已修改,注意读题)
#include<stdio.h> #include<string.h> #include<
stdlib
.h> int main() { int t
·
2015-11-12 19:03
时间
杭电 2082 找单词
#include<stdio.h> #include<string.h> #include<
stdlib
.h> int main() { int ch
·
2015-11-12 19:02
杭电
杭电 1284 钱币兑换问题
正确代码: #include<stdio.h> #include<string.h> #include<
stdlib
.h> #define MAXSIZE 32780
·
2015-11-12 19:02
问题
杭电 1085 Holding Bin-Laden Captive!
#include<stdio.h> #include<string.h> #include<
stdlib
.h> int main() { int num1
·
2015-11-12 19:01
apt
杭电 1398 Square Coins
#include<stdio.h> #include<string.h> #include<
stdlib
.h> #include<math.h>
·
2015-11-12 19:00
in
上一页
45
46
47
48
49
50
51
52
下一页
按字母分类:
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
其他