Initialisieren Sie in der folgenden Klasse mittel Initialisierungsliste den _messwert mit 0:

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
muminhadzic
Date:
Tue Oct 06 16:13:47 2020 +0000
Commit message:
Initialisieren Sie in der folgenden Klasse mittel Initialisierungsliste den _messwert mit 0:

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r d803a8e2fa2f main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Oct 06 16:13:47 2020 +0000
@@ -0,0 +1,22 @@
+#include "mbed.h"
+class MeineKlasse
+{
+public:
+    
+    MeineKlasse( double messwert ) : _messwert(messwert) {}
+
+        void status(){
+          printf("%f\n", _messwert);
+                     }
+private: 
+
+double _messwert;
+};
+
+MeineKlasse meineKlasse(0.0);
+
+int main() {
+    meineKlasse.status();
+    wait_ms(100);
+    
+    }
\ No newline at end of file
diff -r 000000000000 -r d803a8e2fa2f mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Oct 06 16:13:47 2020 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400
\ No newline at end of file