Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
position.cpp
00001 #include <vector> 00002 using namespace std; 00003 class Position{ 00004 private: 00005 int position; 00006 vector <int> previous_cw; 00007 vector <int> previous_ccw; 00008 public: 00009 Position(int p){ 00010 position = p; 00011 } 00012 00013 vector <int> get_previous_cw(){ 00014 return previous_cw; 00015 } 00016 00017 vector <int> get_previous_ccw(){ 00018 return previous_ccw; 00019 } 00020 00021 void add_prev_cw(int pos){ 00022 previous_cw.push_back(pos); 00023 }; 00024 00025 void add_prev_ccw(int pos){ 00026 previous_ccw.push_back(pos); 00027 }; 00028 };
Generated on Fri Jul 15 2022 07:12:37 by
1.7.2