sebbu

siunits main

Jul 27th, 2017
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.31 KB | None | 0 0
  1. #include <iostream>
  2. #include "siunits.hpp"
  3.  
  4. using namespace std;
  5.  
  6. int main(void)
  7. {
  8.     unit<1,0,0,0,0,0,0,float> meter=12;
  9.     meter*=20;
  10.     cout << meter << endl;
  11.     unit<0,0,1,0,0,0,0,float> time=60;
  12.     //auto speed=meter/time;
  13.     unit<1,0,-1,0,0,0,0,float> speed=meter/time;
  14.     cout << speed << endl;
  15.     return 0;
  16. }
  17. //
Add Comment
Please, Sign In to add comment