Voisin

Voisin - s1>getX(v2>getStation>getY...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
#include <string>  #include <math.h>  #include "Voisin.h"  using namespace std;  Voisin::Voisin()     st = new Station();     next = NULL;     dist = 9999;  Voisin::Voisin(Station *nouv)     st = nouv;     next = NULL;  Voisin *Voisin::getNext()     return next;  void Voisin::setNext(Voisin *nouv)     next = nouv;  void Voisin::calcule_dist(Station *s1, Voisin *v2)     // racine((x1-x2) +(y1-y2))     v2->setDist( sqrt((v2->getStation()->getX() - s1->getX())*(v2->getStation()->getX() - 
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: s1->getX()) + (v2->getStation()->getY() - s1->getY())*(v2->getStation()->getY() - s1->getY())) ); } void Voisin::setStation(Station *nv) { st = nv; } Station *Voisin::getStation() { return st; } int Voisin::getDist() { return dist; } void Voisin::setDist(int nouv) { dist = nouv; }...
View Full Document

This note was uploaded on 11/01/2009 for the course AV 244 taught by Professor Dub during the Spring '09 term at ECE.

Page1 / 2

Voisin - s1>getX(v2>getStation>getY...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online