Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F94257475
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
Thu, Dec 5, 05:04
Size
485 B
Mime Type
text/x-c
Expires
Sat, Dec 7, 05:04 (2 d)
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