Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F95091188
vector.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Dec 12, 19:10
Size
764 B
Mime Type
text/x-c
Expires
Sat, Dec 14, 19:10 (2 d)
Engine
blob
Format
Raw Data
Handle
22930919
Attached To
rSYMKIT symkit
vector.h
View Options
#ifndef __VECT3D_H__
#define __VECT3D_H__
#include <vector>
using
namespace
std
;
class
Vector
{
public:
//Constructeur
Vector
(
const
vector
<
double
>&
init
=
{
0
});
//Destructeur
~
Vector
();
//Manipulateuer
/* La fonction qui suit est superflue grace à l'operateur [] pour la classe Vector
* Voir commentaire réspectif dans le fichier "vector.cpp"
void set_coord(size_t i, double x);
*/
void
augmente
(
double
x
=
0
);
void
operator
=
(
const
Vector
&
);
void
clear
();
//Accesseurs
void
affiche
()
const
;
size_t
size
()
const
;
double
&
operator
[](
size_t
i
);
const
double
&
operator
[](
size_t
i
)
const
;
bool
operator
==
(
const
Vector
&
)
const
;
private:
//Composantes du vecteur
//void clear();
vector
<
double
>
*
components
;
};
#endif
Event Timeline
Log In to Comment