代码搜索结果
找到约 10,000 项符合
8 的代码
8-8.cpp
#include
#include
class array
{
int *p;
int size;
public:
array(int sz);
array(const array &a);
~array();
void put(int i,int j);
int get (int i);
};
ar
8-8.c
#include "stdio.h"
#include "stdio.h"
typedef int KeyType; /*假定关键字类型为整数*/
typedef struct node { /*结点类型*/
KeyType key; /*关键字项*/
/*其它数据域,InfoType视应用情况而定,下面不处理它*/
struct node *lchild,*rchild;
8_8.cpp
//8_8.cpp
#include
#include
#include"employee.h"
using namespace std;
void main()
{
manager m1;
technician t1;
salesmanager sm1;
salesman s1;
char namestr[20];
8-8.c
#include "stdio.h"
#include "stdio.h"
typedef int KeyType; /*假定关键字类型为整数*/
typedef struct node { /*结点类型*/
KeyType key; /*关键字项*/
/*其它数据域,InfoType视应用情况而定,下面不处理它*/
struct node *lchild,*rchild;
8-8.txt
/* 范例:8-8 */
#include
void arith(int *k) /* 传址方式 */
{
*k=*k+1;
}
/* 函数arith()在传递参数时,int *k所执行的动作为 int *k;
k = &i;
,也就是定义指针变量k,并把变量i的地址赋给指针变量k */
8-8.txt
/* 范例:8-8 */
#include
void arith(int *k) /* 传址方式 */
{
*k=*k+1;
}
/* 函数arith()在传递参数时,int *k所执行的动作为 int *k;
k = &i;
,也就是定义指针变量k,并把变量i的地址赋给指针变量k */