摘要: 类图表示不同的实体(人、事物和数据)如何彼此相关,显示了系统的静态结构。类图可用于表示逻辑类,逻辑类通常就是业务人员所谈及的事物种类,比如摇滚乐队、CD、广播剧,或者贷款、住房抵押、汽车信贷及利率的抽象描述。类图还可用于表示实现类,实现类就是程序员要编写的类。实现类图与逻辑类图可能会用来描述一些相同... 阅读全文
posted @ 2015-09-20 14:45 fchy822 阅读(1559) 评论(0) 推荐(0)
摘要: 一、linux下源代码实现/* syn flood by wqfhenanxc.* random soruce ip and random sourec port.* use #includeinstead offor my own system reason.* usage :eg. to flo... 阅读全文
posted @ 2015-09-13 21:02 fchy822 阅读(795) 评论(0) 推荐(0)
摘要: #include<iostream> using namespace std; // 题目:数组中只有不多于两个数字出现次数是奇数次,其他都是偶数次,求出出现奇数次的数字(不含0的数组) //思想: /* (1)如果只有一个数字是奇数次,直接对数组进行按位异或运算,得到的结果就是该数 (2)如果有俩 阅读全文
posted @ 2015-09-10 16:48 fchy822 阅读(1380) 评论(0) 推荐(0)
摘要: #includeusing namespace std;int countOfNumFromSortArr(int arr[],int len,int num);int main(){ int arr[]={0,1,1,2,2,2,2,3,3,3,4}; int n; cin>>n; ... 阅读全文
posted @ 2015-09-09 21:49 fchy822 阅读(246) 评论(0) 推荐(0)
摘要: #include#include#includeusing namespace std;char firstStrAppearOne(const char* str);// 第一个只出现一次的字符void str1MinusStr2(char* str1,const char* str2);// 删... 阅读全文
posted @ 2015-09-09 16:19 fchy822 阅读(278) 评论(0) 推荐(0)