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.
Diff: stack.cpp
- Revision:
- 3:4ef74510cc5b
- Parent:
- 2:0e96f4495b43
- Child:
- 4:b4c8aee2ecad
diff -r 0e96f4495b43 -r 4ef74510cc5b stack.cpp
--- a/stack.cpp Fri Jun 26 10:16:24 2015 +0000
+++ b/stack.cpp Fri Jun 26 11:01:35 2015 +0000
@@ -24,3 +24,9 @@
return 0.0;
}
}
+
+void show_stack( void )
+{
+ for ( int i = 0; i < sp; i++ )
+ printf( "%3d: %f\n", i, val[ i ] );
+}