wrd_debug_0.cc

来自「这是处理语音信号的程序」· CC 代码 · 共 48 行

CC
48 行
字号
// file: wrd_debug_0.cc//// isip include files//#include "word.h"#include "word_constants.h"// method: debug_cc//// arguments://  FILE* fp: (input) a open file pointer//  char_1* message: (input) a message to be displayed//// return: a logical_1 flag indicating success//logical_1 Word::debug_cc(FILE *fp_a, char_1* message_a) {    // dump the contents of the class to the file  //  fprintf(fp_a, "%s::%s index_d = %ld\n", WRD_CLASS_NAME, message_a, index_d);  fprintf(fp_a, "%s::%s name_d = %s\n", WRD_CLASS_NAME, message_a, name_d);  fprintf(fp_a, "%s::%s num_prons_d = %ld\n", WRD_CLASS_NAME, message_a,	  num_prons_d);  // output the pronunciation  //  fprintf(fp_a, "%s::%s phone_list_d = %p\n", WRD_CLASS_NAME, message_a,	  phone_list_d);  fprintf(fp_a, "%s::%s num_phones_d = %p\n", WRD_CLASS_NAME, message_a,	  num_phones_d);  for (int_4 i = 0; i < num_prons_d; i++) {    for (int_4 j = 0; j < num_phones_d[i]; j++) {      fprintf(fp_a, "%s::%s phone_list_d[%ld][%ld] = %ld\n", WRD_CLASS_NAME,	      message_a, i, j, phone_list_d[i][j]);    }  }  // output the status flag  //  fprintf(fp_a, "%s::%s active_d = %c\n", WRD_CLASS_NAME, message_a,	  active_d);    // exit gracefully  //  return ISIP_TRUE;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?