Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F120878906
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
Mon, Jul 7, 15:32
Size
485 B
Mime Type
text/x-c
Expires
Wed, Jul 9, 15:32 (2 d)
Engine
blob
Format
Raw Data
Handle
27263246
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