Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F103634378
svector_test.cpp
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
Mon, Mar 3, 14:00
Size
599 B
Mime Type
text/x-c
Expires
Wed, Mar 5, 14:00 (1 d, 16 h)
Engine
blob
Format
Raw Data
Handle
24614911
Attached To
rSYMKIT symkit
svector_test.cpp
View Options
#include <iostream>
#include "iosymkit.h"
#include "svector.h"
using
namespace
std
;
int
main
()
{
//Test constructeur par initializer_list
SVector
<
3
>
v
=
{
0
,
1
,
2
};
cout
<<
"Second access"
<<
endl
;
//Test operator []
double
x
=
v
[
0
];
cout
<<
"x set"
<<
endl
;
double
y
=
v
[
1
];
cout
<<
"y set"
<<
endl
;
double
z
=
v
[
2
];
cout
<<
"z set"
<<
endl
;
cout
<<
"here"
<<
endl
;
//Test operator <<
cout
<<
v
<<
endl
;
SVector
<
3
>
w
=
{
5
,
6
,
7
};
cout
<<
w
<<
endl
;
// Test operator ^
SVector
<
3
>
res
=
v
^
w
;
cout
<<
res
<<
endl
;
}
Event Timeline
Log In to Comment