#include<iostream>
#include<string>
#include<cstring>
using namespace std;
const n=100;
const m=50;
int stringmatch(char ch1[],char ch2[])
{
int i,j;
for(i=0;i<n-m;)
{
......................
阅读全部
|
一条沙丁鱼
贴于 2015年4月5日 20:34
hide
bbsi
#include<stdio.h>
main( )
{
int i=1;
void union(List&La,List Lb){
La_len=ListLength(La);
Lb_len=ListLength(Lb);
for(i=1;i<=Lb_len;i++){
GetElem(Lb,i,e);
if(!LocateElem(La,e,equal( ))ListInsert(La,++La_len,e));
}
}
......................
阅读全部
|
刘新手
贴于 2015年4月4日 11:32
hide
bbsi
#include<stdio.h>
main( )
{
int i=1;
void union(List&La,List Lb){
La_len=ListLength(La);
Lb_len=ListLength(Lb);
for(i=1;i<=Lb_len;i++){
GetElem(Lb,i,e);
if(!LocateElem(La,e,equal( ))ListInsert(La,++La_len,e));
}
}
......................
阅读全部
|
刘新手
贴于 2015年4月4日 11:28
hide
bbsi
#include<stdio.h>
#include<math.h>
int main()
{
double a,b,c,dis,p,q;
printf("please intput a;b;c:");
scanf("%lf%lf%lf",&a,&b,&c);
dis=b*b-4*a*c;
p=-b/(2*a);
if(a!=0)
{
......................
阅读全部
|
夏日_
贴于 2015年3月31日 19:23
hide
bbsi
#include <iostream>
using namespace std;
class volume
{
private:
int length;
int width;
int heigth;
public:
void set_volume(void);
void show_volume(void);
};
......................
阅读全部
|
hzj199603
贴于 2015年3月29日 22:26
hide
bbsi
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
typedef unsigned short int WORD;
typedef unsigned int DWORD;
typedef int LONG;
typedef unsigned char BYTE;
/*********** *********** *********** *********** *********** *********** ***********
* definition :struct
* Description :位图文件头
......................
阅读全部
|
valerychen
贴于 2015年3月29日 13:57
hide
bbsi
#include <malloc.h>
#include <iostream>
using namespace std;
#define error -1;
#define ok 1;
typedef int ElemType;
typedef int Status;
typedef struct LNode
{
ElemType data;
struct LNode *next;
}LNode,*LinkList;
......................
阅读全部
|
一天一天谎言
贴于 2015年3月28日 20:43
hide
bbsi
#include <malloc.h>
#include <iostream>
using namespace std;
#define error -1;
#define ok 1;
typedef int ElemType;
typedef int Status;
typedef struct LNode
{
ElemType data;
struct LNode *next;
}LNode,*LinkList;
......................
阅读全部
|
一天一天谎言
贴于 2015年3月28日 20:42
hide
bbsi