📄 tr_lat_set_4.cc
字号:
// file: tr_lat_set_4.cc//// isip include files//#include "train_lattice.h"#include "train_lattice_constants.h"// method: set_model_set_cc//// arguments:// char_1* model_set_a: (input) Train_Model set used in Train_Lattice creation//// return: a logical_1 indicating status//// this method sets the name of the Train_Model set used in Train_Lattice creation//logical_1 Train_Lattice::set_model_set_cc(char_1* model_set_a) { // get the length of the input string // int_4 str_len = strlen((char*)model_set_a); // allocate memory for the Train_Model set name // if (model_set_d != (char_1*)NULL) { delete [] model_set_d; } model_set_d = new char_1[str_len + (int_4)1]; // copy the string // strcpy((char*)model_set_d, (char*)model_set_a); // exit gracefully // return ISIP_TRUE;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -