div, descripcion y ejemplo

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
sherckuith
Date:
Tue Apr 03 21:00:47 2012 +0000
Commit message:
descripcion de division y ejemplo

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 7f41d307b1cb main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Apr 03 21:00:47 2012 +0000
@@ -0,0 +1,22 @@
+#include "mbed.h"
+
+/* system example : DIR */
+#include <stdio.h>
+#include <stdlib.h>
+
+int main ()
+{
+  int i;
+  printf ("Checking if processor is available...");
+  if (system(NULL)) puts ("Ok");
+    else exit (1);
+  printf ("Executing command DIR...\n");
+  i=system ("dir");
+  printf ("The value returned was: %d.\n",i);
+  return 0;
+}
+
+
+
+//Output:
+//38 div 5 => 7, remainder 3.
diff -r 000000000000 -r 7f41d307b1cb mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Apr 03 21:00:47 2012 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/737756e0b479