A low Mach, 1D, reacting flow code.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

32 lignes
741B

  1. #ifndef PRINT_DEF
  2. #define PRINT_DEF
  3. #include <string.h> //for strings
  4. #include <stdio.h> //for printf,scanf
  5. #include <stdlib.h> //for atoi, atof
  6. #endif
  7. #ifndef PARSE_DEF
  8. #define PARSE_DEF
  9. #define MAXBUFLEN 200
  10. void getFromString (const char* buf, int* n);
  11. void getFromString (const char* buf, size_t* n);
  12. void getFromString (const char* buf, double* n);
  13. void getFromString (const char* buf, char* n);
  14. int parseString(FILE* input, const char* keyword, const size_t bufLen, char* n);
  15. template<typename T>
  16. int parseNumber(FILE* input, const char* keyword, const size_t bufLen, T* n);
  17. template<typename T>
  18. int parseArray(FILE* input, const char* keyword, const size_t bufLen,
  19. const size_t arrLen, T y[]);
  20. #include "parse.hpp"
  21. #endif