Résultat du TP en C sur Forth
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

num.h 357B

12345678910111213141516171819202122
  1. #ifndef NUM_H_
  2. #define NUM_H_
  3. enum NUMTYPE { INT, FLOAT };
  4. union Num {
  5. int vali;
  6. float valf;
  7. };
  8. struct NumContainer {
  9. enum NUMTYPE t;
  10. union Num n;
  11. };
  12. void printNum( struct NumContainer num );
  13. void printLnNum( struct NumContainer num );
  14. char evalasBool( struct NumContainer num );
  15. struct NumContainer readNum(char* s);
  16. #endif // NUM_H_