c/c++
zgjsisuo
这个作者很懒,什么都没留下…
展开
-
fcs
// fcs.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"//#include "WinDef.h"//#include #include //#include #include //#include //#include // mfc的类//#include #include #include #原创 2007-08-11 11:40:00 · 555 阅读 · 0 评论 -
vs竟然能正常运行,gcc 会判断出错误
#include using namespace std;int main(){/// 字符串处理, string str="143545,dfdf"; char* mybuf="ddd 234"; char mys[33]; short myi; //sscanf(mybuf,"%[^ ] %d",&mys,&myi);// 这一句 vs竟然能正常运行,gcc 会判断出错误 in原创 2009-10-13 16:40:00 · 477 阅读 · 0 评论 -
简单选择排序
//简单选择排序void SelectSort(int r[ ], int n){ int i; int j; int index; int temp; for (i=0; i { index=i; for (j=i+1; j if (r[j] index=j; if (index!=i) //这是把最小的放到最前面,很关原创 2007-05-27 22:09:00 · 525 阅读 · 0 评论 -
遍历树 不好用
//非递归方式建树,并按任一种非递归遍历次序输出二叉树中的所有结点;#include #include #include #define MaxSize 50typedef char ElemType;typedef struct TNode{ ElemType data; struct TNode *lchild,*rchild;}BTree;//------------------------原创 2007-05-26 14:58:00 · 540 阅读 · 0 评论 -
排序算法 王老师
#include using namespace std;void InsertSort(int r[], int n); //直接顺序排序void ShellSort(int r[], int n); //希尔排序void BubbleSort(int r[], int n); //起泡排原创 2007-05-24 16:39:00 · 651 阅读 · 0 评论 -
/* 二叉树后根周游的非递归算法*/ 调试
/* 二叉树后根周游的非递归算法*/#include "stdafx.h"#include#includetypedef char DataType;struct BinTreeNode; /* 二叉树中结点 */typedef struct BinTreeNode *PBinTreeNode; /* 结点的指针类型 */int inum原创 2007-05-23 22:02:00 · 682 阅读 · 0 评论 -
先序遍历二叉树的递归算法
//// 2.cpp : 定义控制台应用程序的入口点。////////#include "stdafx.h"//using namespace std;////int _tmain(int argc, _TCHAR* argv[])//{// cout// return 0;//}////#include #include "stdafx.h"#include typedef stru原创 2007-05-23 00:20:00 · 1115 阅读 · 0 评论 -
图的邻接矩阵 广度深度遍历 王老师的代码
#include#include //引入标准库中的头文件#include "graph.h" //引入头文件using namespace std;/* *前置条件:图不存在 *输 入:无 *功 能:图的初始化 *输 出:无 *后置条件:构造一个空的图 */template MGraph::MGrap原创 2007-05-26 20:54:00 · 900 阅读 · 0 评论 -
/* 二叉树后根周游的非递归算法*/
/* 二叉树后根周游的非递归算法*/#include "stdafx.h"#include#includetypedef char DataType;struct BinTreeNode; /* 二叉树中结点 */typedef struct BinTreeNode *PBinTreeNode; /* 结点的指针类型 */int inum原创 2007-05-23 13:50:00 · 761 阅读 · 0 评论 -
前序 中序遍历 非递归 树不紧凑
/** Copyright (c) 2004* All rights reserved.* * 文件名称:Traverse.c* 文件标识:为二叉树各种操作中的一种* 摘 要:二叉树操作,包含先序、中序和后序遍历的递归算法,* 及中序遍历的非递归算法。* 当前版本:1.0* 作 者:Yu* 完成日期:2004年7月31日** 取代版本:1原创 2007-05-26 15:33:00 · 568 阅读 · 0 评论 -
如果想在JM86解码端直接拿测试序列进行误码掩盖(不经过编码和解码这个动作),
神伏 18:15:11你好 神伏 18:16:35能麻烦你解答一下群上那几个问题吗?谢谢! 神伏 21:04:04你好 神伏 21:04:19请问一下如果想在JM86解码端直接拿测试序列进行误码掩盖(不经过编码和解码这个动作),应在程序的哪个位置读入这段序列??? 阿金&zgj 21:05:45等等 神伏 21:06:06好的,谢谢 阿金&zgj 21:10:44void exit_pict原创 2007-05-23 21:28:00 · 757 阅读 · 0 评论 -
/* 树的先根周游的非递归算法*/ 张老师得代码功能不好 网上中序可以 /*
/* 树的先根周游的非递归算法*/ 张老师得代码功能不好 网上中序可以 /** Copyright (c) 2004* All rights reserved.* * 文件名称:Traverse.c* 文件标识:为二叉树各种操作中的一种* 摘 要:二叉树操作,包含先序、中序和后序遍历的递归算法,* 及中序遍历的非递归算法。* 当前版本:1.0* 作原创 2007-05-26 13:54:00 · 666 阅读 · 0 评论 -
my quicksort
#include "stdafx.h"using namespace std;void myswape(int &x,int &y){ int temp=x; x=y; y=temp;}void quicksort( int a[],int low,int high){ //if (low=>high) return ; if (high if (1==high-low){ if原创 2007-05-22 00:09:00 · 461 阅读 · 0 评论 -
常见的面试问题
下面按照不同的技术领域分类总结各部分常见的面试问题,括号中会标注该问题的来r$cX%Y}I"v源。9Ky*H7iG @aw:Wd1、java工资,薪酬,待遇,福利G2~3sh)g/bw 因为我投的职位主要是java相关的,所以这方面积累的经验比较多一下。这部分考查CMN;Xu,I的重点主要有:java基本语法,多线程,异常处理,抽象类,匿名类,接口,MVC架构,S转载 2007-05-19 15:50:00 · 1234 阅读 · 0 评论 -
memcpy源代码
百度空间 | 百度首页 | 登录 像神一样 主页博客相册|个人档案 |好友 查看文章 memcpy,stcpy,strcat,strcmp等库函数源码2009-07-27 23:27memcpy memmove memcmp strcpy s转载 2009-12-28 09:43:00 · 1078 阅读 · 0 评论