-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvector.h
45 lines (31 loc) · 781 Bytes
/
vector.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef VECTOR_H
#define VECTOR_H
#include <iostream>
#include <fstream>
#include <cstdlib>
#include <string>
#include <cstring>
#include <stdio.h>
#include <vector>
using namespace std;
class Vector {
public:
/* Atributos */
float* v; /* Vetor de ponto flutuante. */
int n; /* Numero de elementos do vetor. */
/* Metodos */
Vector(int size);
Vector(char* filename);
~Vector();
Vector* Copy();
void ResetVector();
void SetElementVector(int i, float element);
void PrintScreenVector();
void PrintFileVector(char *filename);
int GetSizeVector();
float GetElementVector(int i);
float* GetDataVector();
float operator[](int i);
Vector *SelectElements(vector<int> *selectedElems);
};
#endif // VECTOR_H