A low Mach, 1D, reacting flow code.
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

4年前
12345678910111213141516171819202122232425262728293031
  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