Novo

Dependencies:   mbed

Fork of LukaIElmir by tim003 tim003

Committer:
tim003
Date:
Mon May 26 18:28:21 2014 +0000
Revision:
5:654e3398c1ef
Parent:
4:ba24ce878e87
jo? nest;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
tim003 4:ba24ce878e87 1 #include "mbed.h"
tim003 4:ba24ce878e87 2 #ifndef ZNAK_H
tim003 4:ba24ce878e87 3 #define ZNAK_H
tim003 4:ba24ce878e87 4 #include <vector>
tim003 4:ba24ce878e87 5
tim003 5:654e3398c1ef 6 struct Znak
tim003 4:ba24ce878e87 7 {
tim003 5:654e3398c1ef 8
tim003 5:654e3398c1ef 9 char niz[6];
tim003 5:654e3398c1ef 10 char vel;
tim003 5:654e3398c1ef 11
tim003 4:ba24ce878e87 12 Znak(int r0 = -1, int r1 = -1, int r2 = -1, int r3 = -1, int r4 = -1, int r5 = -1)
tim003 4:ba24ce878e87 13 {
tim003 5:654e3398c1ef 14 if(r0 != -1) {
tim003 5:654e3398c1ef 15 niz[0] = r0;
tim003 5:654e3398c1ef 16 vel++;
tim003 5:654e3398c1ef 17 if(r1 != -1){
tim003 5:654e3398c1ef 18 niz[1] = r1;
tim003 5:654e3398c1ef 19 vel++;
tim003 5:654e3398c1ef 20 }
tim003 5:654e3398c1ef 21 if(r2 != -1){
tim003 5:654e3398c1ef 22 niz[2] = r2;
tim003 5:654e3398c1ef 23 vel++;
tim003 5:654e3398c1ef 24 if(r3 != -1){
tim003 5:654e3398c1ef 25 niz[3] = r3;
tim003 5:654e3398c1ef 26 vel++;
tim003 5:654e3398c1ef 27 if(r4 != -1){
tim003 5:654e3398c1ef 28 niz[4] = r4;
tim003 5:654e3398c1ef 29 vel++;
tim003 5:654e3398c1ef 30 if(r5 != -1){
tim003 5:654e3398c1ef 31 niz[5] = r5;
tim003 5:654e3398c1ef 32 vel++;
tim003 5:654e3398c1ef 33 }
tim003 5:654e3398c1ef 34 }
tim003 5:654e3398c1ef 35 }
tim003 5:654e3398c1ef 36 }
tim003 5:654e3398c1ef 37
tim003 5:654e3398c1ef 38 }
tim003 5:654e3398c1ef 39
tim003 4:ba24ce878e87 40 }
tim003 4:ba24ce878e87 41
tim003 4:ba24ce878e87 42 };
tim003 4:ba24ce878e87 43
tim003 4:ba24ce878e87 44 #endif // ZNAK_H