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 Teach memory
teach.cpp
- Committer:
- MarcelPortmann
- Date:
- 2020-03-25
- Revision:
- 0:ad924d8a2f98
- Child:
- 1:33fdaabcdeda
File content as of revision 0:ad924d8a2f98:
/* class template by clemo this file serves as a guide to creating a cpp class when wirting functions for Easyfit please use this put math, instructions and temporary declarations here declarations that are permanent go in .h file! i never coded c++ lol how to use when creating own class: replace "template.h" with something of your choosing replace class name (teach) fckn everywhere write appropriate constructor (teach::teach) delete any unwanted functions put in your own functions by YOURCLASSNAME::functionname(bla,bla) //same for public and private functions */ #include "teach.h" teach::teach(){ /* this->initvalue = _start; //sets startvalue this->inc = _inc; //sets increment this->useless(); //prints a happy little message } void teach::incrementSum(int v1){ for(int i = 0; i < v1; i++){ sum += inc; } } void teach::resetSum(void){ sum = 0; } int teach::getSum(void){ return sum; } void teach::useless(void){ //printf("congrats"); */ //printf doesnt work :( }