搜索资源列表
ghgl
- #include <stdio.h> #include <stdlib.h> #define N 3 struct huowu {char num[10] char name[8] int money[3] int amount[3] }huo[N],temp -# include
222
- 这是在学习数据库时写的一个程序,采取DAO访问ACCESS数据库的方式 1:在程序中使用了CButtonStyle这个免费类库。 2:在InitButtonSytle()中,为了使代码更短小,用循环实现了位图按钮。 // 用循环实现必须手动改动Resource.h中的定义 // 具体细节请参看源代码 for ( int nIco = IDI_JUMP, nBtn = IDC_JUMP nBtn >= IDC_LISTITEM
TestOracleJDBC
- OracleJDBC的测试代码,数据库脚本为create table usb( nmb int,sb char(20)) -Oracle test code, database scr ipts to create table usb (nmb int, char sb (20))
daoyou
- if(v0==y)return "请正确选择景点" int v,w,i,j,min CString s1 bool final[num] int d[num] for(i=0 i<num i++) for(j=0 j<num j++) p[i][j]=-1 for(v=0 v<num v++){ final[v]=false d[v]=g.arcs[v0][v] if(d[v]<
JDBCProject
- 实例 建立一个学生表student ,包括三个属性:学号、姓名和年龄,其创建语句如下: create table student (id varchar(10) primary key,name varchar(20), age int) 实现的功能: 向表student中插入一条记录id=000099988,name=zhhdhh,age=45 输出显示所有的记录。 实现方式: 纯Java驱动 JDBC-ODBC桥-装载驱动程序 JDBC/ODBC桥:
nixu
- 求数组逆序的函数。从键盘输入int型数组a[ 20 ]的20 个元素值,函数实现对数组元素数据的逆序放置。即第1个元素与第20个元素互换,第2个元素与第19个元素互换,……,第10个元素与第11个元素互换。压缩包内共两种方法。-Find an array reverse function. Input from a keyboard int array [20] of the 20 elements of the value placed on the reverse function to a
ArrayHelper
- Utility class providing array to int long conversion for data received devices through adb.-Utility class providing array to int long conversion for data received devices through adb.
1
- 1. 编写并测试如下函数: void Add (int a[], int m, int b[], int n) 该函数将数组b的前n个元素追加到数组a的前m个元素后,假定数组a具有至少存放m+n个元素的空间。例如,如果数组a为{22,33,44,55,66,77,88,99},数组b为{20,30,40,50,60,70,80,90},则调用Add(a,5,b,3)后,将把数组a变为{22,33,44,55,66,20,30,40}。注意数组b并没有改变,而且数组a中只需改变n个元素。
2
- 1. 编写筛选查找素数函数: void sieve(bool isPrime[], int n) 其中isPrime[n]为一个布尔型数组,n为数组大小。由于2是第一个素数,所以设置isPrime[0]和isPrime[1]的值为false,并设置其余的元素初值为true。然后对从4到n-1的每一个i,判断i是否能够被2整除,如果i能够被2整除,则设置isPrime[i]为false。对从2到n/2的每一个可能的数值重复以上处理,当操作结束时,所有值为true的isPrime[i]所对应
4
- 1. 实现二分法求解方程。编写并使用以下函数: double SolveRoot(double(*pf)(double x),double a,double b,int n) 这里,pf指向一个函数f,f用来定义要求解的方程f(x)=0,a和b是未知解x的上下界(即a<=x<=b),n是循环次数。例如,如果f(x)=x*x-2,则SolveRoot (f,1,2,100)将返回1.414213562373095,即方程为x*x=2的解。二分法的原理是反复地把区间分为两个相等区
exporttocsv
- qt函数,实现QSqlQueryModel导出到文本文件,做备份,或者防止异常退出而导致的数据丢失。-bool zzzz::exporttocsv(QSqlQueryModel* view, QString fileName) { //单行插入文本文档 if (fileName.isEmpty()) return false QFile file(fileName) if (file.open(QIODevice::WriteO
DateClass
- 日期类(Date),重载下列运算符实现相关操作: (1)重载-(日期相差天数) (2)重载+(Date+int) (3)重载+(int+Date) (4) 重载++ ( Date d d++ ++d)-Date class (Date), overloaded operators to achieve the following related operations: (1) overloaded- (date difference in days) (2) overloaded+ (Date+
SOCKET.CPP
- #include <winsock2.h> #pragma comment(lib, ws2_32.lib ) int main() { WSADATA WSAData SOCKET sock SOCKADDR_IN sin char buffer[255] WSAStartup(MAKEWORD(2,0), &WSAData) Tout est configuré pour se connecter sur IRC, haa
alloc
- Memory Allocation in C-write part of a dynamic storage allocationpackage. The package provides three function calls: void initalloc(), toinitialize the data structures involved char* alloc(int n), which returnsa pointer to a block of n chars when ca
BAS-INT
- 一个最简单的基于VB开发环境的整型BASIC的C语言源码-One of the most simple VB development environment based on the C language source code BASIC integer
findpci
- 这是一个通过INT调用察看PCI信息的程序,对于学习PCI规范的人很有用-This is a call to see through INT PCI procedures for information, learning the PCI specifications useful
int2e_ring0_worked_thread_created!!!
- int 2e functions test
sssssssssss
- 函数要求编写递归函数power( float base, int exponent )// 计算baseexponent的值;并且要求输出递归调用过程的相关信息。-Function requested by the recursive function power (float base, int exponent)// calculate the value of baseexponent and asked the output process of recursive calls rel
1104
- 、声明一个CPU类,包含等级(rank)、频率(freauency)、电压(voltage)等属性,有两个公有成员函数run、stop。其中rank为枚举类型,声明为enum CPU_Rank { p1=1,p2,p3,p4,p5,p6,p7},frequency为单位是MHz的整形数,voltage为浮点型的电压值。观察构造函数和析构函数的调用顺序。-creat a class CPU which includes rank frequency voltage . frequenc
alloc
- Memory Allocation in C-write part of a dynamic storage allocationpackage. The package provides three function calls: void initalloc(), toinitialize the data structures involved char* alloc(int n), which returnsa pointer to a block of n chars when ca
