代码搜索:VECTOR
找到约 10,000 项符合「VECTOR」的源代码
代码结果 10,000
www.eeworm.com/read/143864/12834066
cpp vector.cpp
#include
#include"Vector.h"
#include"assert.h"
void main()
{
Vector a(3),v(3),d(3);
int c;
a[0]=1;a[1]=1;a[2]=4;v[0]=2;v[1]=3;v[2]=5;
c=a*v;
cout
www.eeworm.com/read/143816/12839273
h vector.h
#ifndef _VECTOR_H_
#define _VECTOR_H_
#include
#define VECTOR(obj) ((Vector*) obj)
typedef struct _Vector Vector;
struct _Vector
{
Object parent;
Object** data;
unsigned int size;
};
www.eeworm.com/read/143816/12839286
c vector.c
#include
#include
#include
Vector* vector_new ()
{
Vector *self;
self = (Vector*)mem_new(sizeof(Vector));
object_init_object (OBJECT (self), vector_destroy);
self-
www.eeworm.com/read/244862/12839479
h vector.h
typedef double db;
class vector{
private:
public:
db xx,yy,zz;
vector(db x=0.0,db y=0.0,db z=0.0);
double operator!(); //calculate the module of a vector
vector operator&(); //unit v
www.eeworm.com/read/143653/12853961
h~ vector.h~
/****************************************************************
File Name: vector.h
Author: Tian Zhang, CS Dept., Univ. of Wisconsin-Madison, 1995
Copyright(c) 1995 by Tian Zhang
www.eeworm.com/read/143653/12853993
c vector.c
/****************************************************************
File Name: vector.C
Author: Tian Zhang, CS Dept., Univ. of Wisconsin-Madison, 1995
Copyright(c) 1995 by Tian Zhang
www.eeworm.com/read/143653/12854038
c~ vector.c~
/****************************************************************
File Name: vector.C
Author: Tian Zhang, CS Dept., Univ. of Wisconsin-Madison, 1995
Copyright(c) 1995 by Tian Zhang
www.eeworm.com/read/143653/12854090
h vector.h
/****************************************************************
File Name: vector.h
Author: Tian Zhang, CS Dept., Univ. of Wisconsin-Madison, 1995
Copyright(c) 1995 by Tian Zhang
www.eeworm.com/read/143653/12854456
h vector.h
/****************************************************************
File Name: vector.h
Author: Tian Zhang, CS Dept., Univ. of Wisconsin-Madison, 1995
Copyright(c) 1995 by Tian Zhang
www.eeworm.com/read/143653/12854634
c vector.c
/****************************************************************
File Name: vector.C
Author: Tian Zhang, CS Dept., Univ. of Wisconsin-Madison, 1995
Copyright(c) 1995 by Tian Zhang