搜索资源列表
debugmalloc
- #include <stdlib.h> #include <string.h> #include <stdio.h> //#include <iostream> #include "debugmalloc.h" #include "dmhelper.h" /*Define the macro */ #define ALIGN 8 #define FENCE 0xDEADBEEF #define HE
shunxu
- //顺序表的建立、查找、插入与删除 #include <stdio.h> #include <malloc.h> #include <stdlib.h> #define ListSize 100 //表最大长度 //结构定义 typedef struct SeqList { int node[ListSize] //存放表结点 int length //当前表长度 } SeqList //插入元素
chaoshiguanli
- #include<stdlib.h> #include "dos.h" #include "graphics.h" #include "math.h" #define PI 3.1415926 #define NULL 0 #include<stdio.h> #include<string.h> -# Include <stdlib.h># Include dos.h# Include graphics.h# I
4
- 四则运算 将算术表达式转换成后缀表达式后计算-#include<stdio.h> #include <stdlib.h>
rls
- c语言编写的俄罗斯方块程序,c语言环境编写,供大家娱乐一下:)-/********************************/ /* Desc: 俄罗斯方块游戏 */ /* Date: 2008.03.12 22:30 */ /********************************/ #include <stdio.h> #include <bios.h> #include
stereo
- Kilgard, 1994. */ /* This program is freely distributable without licensing fees and is provided without guarantee or warrantee expressed or implied. This program is -not- in the public domain. */ #include <stdlib.h> #includ
searching
- /* binarysearch() - A binary search implementation which takes the same * arguments as the C library function bsearch() provided by stdlib.h. It * searches the sorted array at address base, which has nmemb elements, each of * which is size b
c-P-P-lexical-analysis
- c++词法分析很简单的代码#include<iostream.h> #include<fstream.h> #include<stdlib.h> #include<stdio.h> #include<string.h> #include<conio.h> #include<process.h> /*头文件*/ -c++ lexical analysis is very simple c
CIni
- ini 文件解析器(类),将ini文件的读写等操作进行了封装,使用标准的输入输出等简单的库(string、stdio、stdlib),输入文件名 段名 条目名就可以解析出结果。通过ReadInt(),ReadString(),Write()3个主要函数实现。-an implementation of initialization file parser, only few stand libs needed(sting.h, stdio.h, stdlib.h), 3 main function
1
- :构建一个圆类Circle,其成员为圆心的坐标(x,y)和圆半径r,并设计构造函数(可以赋初值也可以不赋初值),析构函数(可以什么都不做,只打印信息,表示其被调用),设置新值成员函数Set(), 取圆心坐标成员函数GetX()、GetY(),取圆半径成员函数GetR(),打印成员值成员函数Print(),计算圆面积成员函数Area()。并用此类定义长度为10的对象数组,每个对象的圆心的坐标(x,y)和圆半径r由随机数rand()产生,打印每个对象的(x,y)、r和面积;然后将对象数组按照其r值从
file5
- C语言实验5,学生信息管理系统#include "stdio.h" #include "stdlib.h" #include "string.h" #include "malloc.h" -student infomation management system
001
- #include <stdio.h> #include <float.h> #include <windows.h> #include<stdlib.h> #include<string.h> #include<conio.h>-# Include <stdio.h># Include <float.h># Include <windows.h># Include &l
Huffman-codec
- 哈夫曼编译码器#include<iostream.h>//该程序实验哈夫曼树的建立、编码、译码三个基本功能 #include<stdio.h> #include<stdlib.h> #include<string.h> #include<fstream.h> typedef struct{ //结构体-Huffman codec
排列
- 本题要求编写程序,将一个给定的整数插到原本有序的整数序列中,使结果序列仍然有序。 输入格式: 输入在第一行先给出非负整数N(<10);第二行给出N个从小到大排好顺序的整数;第三行给出一个整数X。 输出格式: 在一行内输出将X插入后仍然从小到大有序的整数序列,每个数字后面有一个空格。(Input sample: Five 12457 Three Output sample: 1234
1
- 文件的复制和追加。包括< stdio。h > # include < stdlib。h>#定义MAXLEN 80int main(void){file *fpSrc=NULL;文件* fpDst =零;char ch;char srcFilename[MAXLEN];char dstFilename[MAXLEN];printf("输入源文件名:”);scanf(“% s”,srcFilename);如果((fpSrc = fopen(srcFilename,“