搜索资源列表
BitArrayApp
- The class CBitArray behaves like a specialization of the MFC template class CArray. A real specialization is not possible because of a missing simple data type for a bit. For maximum efficiency the bits are packed into a dynamic array of unsign
c
- 1.自己编写一个简单的C++类程序 2.类的要求:(1)一个C++的复数类,类名为complex,类中有两个私有成员变量i.j.还有一个成员函数Show用于显示数据。(2)编写一个add函数,实现两个复数相加。 -A. I have written a simple program of C++ class. Class requirements: (1) a C++ plural class, the class name is complex, two private member
qhash
- These functions are based on Peter J. Weinberger s hash function for Linux.
sjqpl
- 编制生成0~n(n≤255)的一个全排列的程序,可选择下列两个方法之一或自行设计另外方法: 方法1:从一个随机文件读取n+1字节数据d0, d1, L, dn。由预先取定的一个0~n的全排列P(比如,可为0~n的自然排列)开始,依次对i=n, n-1, L, 1,计算:j=di-1+di (mod i)交换P的第i项第j项(在此注意我们假定P从第0项开始)。 方法2:用一个随机函数产生m(m>n)字节数据d1, d2, L, dm。对d1(mod (n+1)), d2(mod (n