Advertisement
Guest User

Untitled

a guest
Dec 18th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.09 KB | None | 0 0
  1.   #include <stdio.h>
  2.   #include "Ausfuehrung.h"
  3.   #include "Prozesse.h"
  4.   #define BOOL int
  5.   #define FALSE 0
  6.   #define TRUE 1
  7.   #define CRITICAL 2
  8.  
  9.   void welcomeLogo(){
  10.     char load[] = "Loading...\n";
  11.     printf("%s", load);
  12.   }
  13.  
  14.   int loadProcesses(BOOL a){
  15.     if(a == TRUE){
  16.         printf("welcome to smart glasses!\n");
  17.       return a;
  18.     }else{
  19.       printf("Loading failed, please restart!\n");
  20.       return 0;
  21.     }
  22.   }
  23.  
  24.   void startbildschirm(int sauerstoff, int empfang, int luftqualitaet){
  25.     printf("Status: %d ", sauerstoff);
  26.     printf("Empfang: %d ", empfang);
  27.     printf("Luftqualität: %d \n", luftqualitaet);
  28.   }
  29.  
  30.  
  31.  
  32.     void ausgeben(){
  33.       int s = sauerstoff();
  34.       int e = empfang();
  35.       int l = luftqualitaet();
  36.       if(pruefen(s,e,l) == TRUE){
  37.         printf("everything is fine\n");
  38.         startbildschirm(s,e,l);
  39.       }else if(pruefen(s,e,l) == CRITICAL){
  40.         printf("Kritischer Stand mindestens ein Wert defekt.\n");
  41.       }else if(pruefen(s,e,l) == FALSE){
  42.         printf("Technischer defekt, bitte neustarten!\n");
  43.       }
  44.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement