Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include "Ausfuehrung.h"
- #include "Prozesse.h"
- #define BOOL int
- #define FALSE 0
- #define TRUE 1
- #define CRITICAL 2
- void welcomeLogo(){
- char load[] = "Loading...\n";
- printf("%s", load);
- }
- int loadProcesses(BOOL a){
- if(a == TRUE){
- printf("welcome to smart glasses!\n");
- return a;
- }else{
- printf("Loading failed, please restart!\n");
- return 0;
- }
- }
- void startbildschirm(int sauerstoff, int empfang, int luftqualitaet){
- printf("Status: %d ", sauerstoff);
- printf("Empfang: %d ", empfang);
- printf("Luftqualität: %d \n", luftqualitaet);
- }
- void ausgeben(){
- int s = sauerstoff();
- int e = empfang();
- int l = luftqualitaet();
- if(pruefen(s,e,l) == TRUE){
- printf("everything is fine\n");
- startbildschirm(s,e,l);
- }else if(pruefen(s,e,l) == CRITICAL){
- printf("Kritischer Stand mindestens ein Wert defekt.\n");
- }else if(pruefen(s,e,l) == FALSE){
- printf("Technischer defekt, bitte neustarten!\n");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement