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.
Dependencies: mbed line-trace2
function.h
- Committer:
- isshikiyuya
- Date:
- 2018-12-07
- Revision:
- 1:a8fad3c66162
- Parent:
- count.h@ 0:764148148257
File content as of revision 1:a8fad3c66162:
#include "mbed.h" /////////////////////////////////////// int count1 = 0; int count2 = 0; int distance1 = 0; int distance2 = 0; int distance = 0; void flip1() { count1++; distance1++; } void flip2() { count2++; distance2++; } /* class Sample{ private: count; public: Sample(); void counter(); void counter2(int &num); }; Sample::Sample() { count=0; } void Sample::counter() { count++; } void Sample::counter2(int& num) { num+=1; } */