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.
Dependencies: mbed
Diff: hilf.cpp
- Revision:
- 10:de7edb744a6a
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/hilf.cpp Tue May 26 15:30:59 2015 +0000
@@ -0,0 +1,74 @@
+#include <stdio.h>
+#include <stdlib.h>
+
+char int_to_char(int x)
+{
+ if(x>=65 && x <=90)
+ {
+ switch(x)
+ {
+ case 65: return 'A';
+ case 66: return 'B';
+ case 67: return 'C';
+ case 68: return 'D';
+ case 69: return 'E';
+ case 70: return 'F';
+ case 71: return 'G';
+ case 72: return 'H';
+ case 73: return 'I';
+ case 74: return 'J';
+ case 75: return 'K';
+ case 76: return 'L';
+ case 77: return 'M';
+ case 78: return 'N';
+ case 79: return 'O';
+ case 80: return 'P';
+ case 81: return 'Q';
+ case 82: return 'R';
+ case 83: return 'S';
+ case 84: return 'T';
+ case 85: return 'U';
+ case 86: return 'V';
+ case 87: return 'W';
+ case 88: return 'X';
+ case 89: return 'Y';
+ case 90: return 'Z';
+ default: break;
+ }
+ }
+
+ if(x>=65 && x <=90)
+ {
+ switch(x)
+ {
+ case 97: return 'a';
+ case 98: return 'b';
+ case 99: return 'c';
+ case 100: return 'd';
+ case 101: return 'e';
+ case 102: return 'f';
+ case 103: return 'g';
+ case 104: return 'h';
+ case 105: return 'i';
+ case 106: return 'j';
+ case 107: return 'k';
+ case 108: return 'l';
+ case 109: return 'm';
+ case 110: return 'n';
+ case 111: return 'o';
+ case 112: return 'p';
+ case 113: return 'q';
+ case 114: return 'r';
+ case 115: return 's';
+ case 116: return 't';
+ case 117: return 'u';
+ case 118: return 'v';
+ case 119: return 'w';
+ case 120: return 'x';
+ case 121: return 'y';
+ case 122: return 'z';
+ default: break;
+ }
+ }
+ return '-';
+}
\ No newline at end of file