lat_set_10.cc

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

CC
39
字号
// file: lat_set_10.cc//// isip include files//#include "lattice.h"#include "lattice_constants.h"// method: set_name_cc//// arguments://  char_1* name_a: (input) name of the lattice//// return: a logical_1 indicating status//// this method sets the name of the lattice//logical_1 Lattice::set_name_cc(char_1* name_a) {  // get the length of the input string  //  int_4 str_len = strlen((char*)name_a);  // allocate memory for the name  //  if (name_d != (char_1*)NULL) {    delete [] name_d;  }  name_d = new char_1[str_len + (int_4)1];    // copy the string  //  strcpy((char*)name_d, (char*)name_a);    // exit gracefully  //  return ISIP_TRUE;}

⌨️ 快捷键说明

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