Files
uni/ws2019/ipi/uebungen/cpp_headers/enum.cc
T

13 lines
282 B
C++

#include "fcpp.hh"
enum Zustand { neu, gebraucht, alt, kaputt };
void druckeZustand (Zustand x) {
if (x==neu) print("neu");
if (x==gebraucht) print("gebraucht");
if (x==alt) print("alt");
if (x==kaputt) print("kaputt");
}
int main () {druckeZustand(alt);}