Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include "Ausfuehrung.h"
- #define BOOL int
- #define FALSE 0
- #define TRUE 1
- #define CRITICAL 2
- BOOL pruefen(int sauerstoff, int empfang, int luftqualitaet){
- if (sauerstoff!=0){
- if (luftqualitaet !=0) {
- if (empfang != 0){
- return TRUE;
- }else{
- return CRITICAL;
- }
- }else{
- return CRITICAL;
- }
- }else{
- return FALSE;
- }
- }
- int sauerstoff(){
- int sauerstoff = 1;
- return sauerstoff;
- }
- int empfang(){
- int empfang = 1;
- return empfang;
- }
- int luftqualitaet(){
- int luftqualitaet = 1;
- return luftqualitaet;
- }
- void aufruf(int i){
- switch(i){
- case 1:
- //methode existiert noch net();
- break;
- case 2:
- //hier entsteht was tolles;
- break;
- case 3:
- //falls es so funktioniert();
- break;
- default:
- printf("ungültige Wahl");
- break;
- }
- }
- BOOL aktivieren(){
- BOOL s = getchar();
- if(s != NULL){
- return FALSE;
- }else{
- return TRUE;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement