Mirza Mesic / Mbed 2 deprecated TINF_Initialisierungslisten_Uebung

Dependencies:   mbed

Files at this revision

API Documentation at this revision

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);