Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F94176990
oscillateur_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
Wed, Dec 4, 12:22
Size
485 B
Mime Type
text/x-c
Expires
Fri, Dec 6, 12:22 (1 d, 14 h)
Engine
blob
Format
Raw Data
Handle
22752265
Attached To
rSYMKIT symkit
oscillateur_test.cpp
View Options
#include <iostream>
#include <vector>
#include "oscillateur.h"
using
namespace
std
;
int
main
()
{
//Test constructeur par Vector
Oscillateur
o
({
1
,
0
,
0
},{
0
,
0
,
0
})
// Test accesseurs
cout
<<
o
.
getp
()
<<
endl
;
cout
<<
o
.
getp_prime
<<
endl
;
//Test manipulateurs
o
.
setp
({
1
,
0
});
o
.
setp_prime
({
2
});
//Test operator <<
cout
<<
o
<<
endl
;
vector
v1
({
1
,
1
,
1
});
vector
v2
({
2
,
1
,
2
});
//Test consctructeur par vector
Oscillateur
o2
(
v1
,
v2
);
cout
<<
o2
<<
endl
;
return
0
}
Event Timeline
Log In to Comment