自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(20)
  • 资源 (9)
  • 收藏
  • 关注

原创 C++选择排序法(Selection Sort)

// implementation of Selection Sort (C++)#include <iostream>using namespace std;void SwapTwo(int& a, int& b){ int temp=a; a=b; b=temp;}void SelectionSort(int arr[], int size){ for (int i=0; i<size;i++) { int Smalle

2014-04-04 17:37:25 4131

原创 C++插入排序法(Insertion Sort)

// implementation of Insertion Sort (C++)#include <iostream>using namespace std;void SwapTwo(int &a, int &b){ int temp = a; a = b; b = temp;}void InsertSort(int arr[], int size){ for (int i=1; i<size; i++) { int inser

2014-04-03 23:38:52 2961

原创 C---read directory

#include #include #include #include #include #include #include #include int main(){DIR *dir;struct dirent *dit;dir=opendir("new");if (dir==NULL){printf("the folder does not exist\n");

2012-06-11 18:04:39 1146 1

原创 c++求 两数 GCD

#include using namespace std;int GCD(int num1, int num2){ int mod=0; if ((mod = (num1%num2)) !=0) { return GCD(num2, mod); } else { return num2; }}int main(){ int num1, num2; cou

2012-05-12 19:58:33 1694 1

转载 RC4

RC4算法:1.  简述:          该算法以OFB方式工作:密匙序列和明文相互独立。它有一个8*8的S盒:S0,S1,S2,....,S255。所有项都是数字         0到255的置换,并且这个置换是一个可变长度密匙的函数。 2.   加密过程:        1>初始化S盒:                 首先进行线性填充:

2012-05-12 13:33:21 475

原创 Playfair Cipher

Playfair Cipher 属于Block cipher的一种。其block size是两个字母大小, 选取一个单词座位key,无重复字母, 然后填写于5*5的方格中,剩下字母依次填入:两个字母X1和X2被加密为Y1和Y2的法则是:1. 如果X1和X2在同一横行,那么Y1和Y2分别问X1和X2右边的字母。(到末端循环从头开始)2. 如果X1和X2在同一竖列,那么Y1

2012-05-05 21:51:13 1578

原创 C++ 堆排序 (HeapSort)

// HeapSort/******************************************** aim: to sort an array in ascending order. 1. making a max-heap firstly(biggest on top). using siftup function (siftdown works as well if you

2012-03-15 17:58:27 2572 1

原创 二叉搜索(Binary Search)

// Binary Search#include using namespace std;void SwapTwo(int &a, int &b){ int temp = a; a = b; b= temp;}void SortNums(int nums[], int size){ for (int i=1; i<size; i++) { int j=i;

2012-03-13 16:31:48 494

原创 选择排序法 (Selection Sort)

// Selection Sort#include using namespace std;void SwapTwo(int &a, int &b){ int temp = a; a=b; b=temp;}int FindSIndex(int nums[], int start, int size){ int smallest = nums[start]; int

2012-03-13 15:13:45 449

原创 Recursive Fibonacci

/* Recursive Fibonacci*/#include using namespace std;int fib(int n){ int f0=0, f1=1; int num; if (n<2) return n; else { return fib(n-1)+fib(n-2); } }int main(){ int n; cout

2012-03-04 16:03:17 498

原创 C++冒泡排序法 (Bubble Sort)

// implementation of Bubble Sort (C++)#include <iostream>using namespace std;void SwapTwo(int &a, int &b){ int temp = a; a = b; b = temp;}void BubbleSort(int arr[], int size){ for (int i=0; i<size; i++) { int j = size

2012-02-29 14:14:36 795

原创 判断输入是否为int ----c++

判断输入是否为int ----c++

2011-04-30 22:17:00 1989

转载 c---清空stdin

c---清空stdin

2011-04-28 18:38:00 4937 2

原创 链表

链表

2011-04-18 15:14:00 358

原创 scanf, gets, fgets

scanf遇空格结束解决方法, gets, fgets

2011-04-17 00:07:00 346

原创 创建文件夹及文件---c

创建文件夹及文件---c

2011-04-16 23:28:00 277

原创 1到100所有质数

1到100所有质数

2011-04-03 20:09:00 564

原创 求两数最大公约数和最小公倍数

最大公约数,最小公倍数

2011-04-03 19:59:00 324

原创 template 冒泡排序

template 冒泡排序

2011-03-28 13:12:00 316

原创 小链表

链表

2011-03-28 13:09:00 281

NAT打洞技术(p2p)

p2p模式私网穿透技术,NAT打洞技术(p2p),采用p2p模式实现的nat私网穿透技术,可以无压力穿透nat实现点对点通信

2016-11-16

The Objective-C Programming Language.pdf

The Objective-C Programming Language.pdf 很经典的Objective-C教程电子书,适合各层次开发者。

2011-04-01

c++国外大学lecture资料_part2.rar

小弟在国外攻读计算机科学,特地将上学期与本学期lecture notes上传以望能带给大家帮助!此为part2,因为上传大小限制,只能分两次了!

2010-07-30

c++ 国外大学lecture资料_Part1.rar

小弟在国外攻读计算机科学,特地将上学期与本学期lecture notes上传以望能带给大家帮助!此为part1,另有part2,因为上传大小限制,只能分两次了!

2010-07-30

C++从零开始.rar

C++从零开始, 适合初学者使用!希望对大家有所帮助!

2010-07-30

The C++ Programming Language (Third Edition).rar

c++电子书, pdf格式,希望对大家有帮助!

2010-07-30

Essential C++中文版.rar

Essential C++中文版, 解压后为pdf格式,希望对大家有用!

2010-07-30

java就业培训.pdf

jave就业培训电子书pdf格式,很适合初学者,简单易懂!

2010-07-29

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除