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.
Revision 7:ff399b101e76, committed 2020-10-13
- Comitter:
- mirzamesic
- Date:
- Tue Oct 13 16:09:09 2020 +0000
- Parent:
- 6:813af40760b0
- Commit message:
- funktionen_ueberladen
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Tue Oct 13 16:00:24 2020 +0000
+++ b/main.cpp Tue Oct 13 16:09:09 2020 +0000
@@ -16,7 +16,16 @@
void printWert(){
printf("messwert: %f\n",_messwert);
}
-};
+
+ void printWert(int izahl){
+ printf("messwert: %f\ izahl: %d \n",_messwert,izahl);
+ }
+
+ void printWert(float fzahl){
+ printf("messwert: %f\ izahl: %f \n",_messwert,fzahl);
+ }
+
+ };
class MyClassA
{
private:
@@ -86,12 +95,17 @@
int main()
{
+
while(1){
myclass1.printWert();
wait(1);
myclass2.printWert();
wait(1);
+ myclass2.printWert(233);
+ wait(1);
+ myclass2.printWert(55.0f);
+ wait(1);