📄 sequences_test.c
字号:
/******************************************************************************* author : Achim G鋎ke filename : ghmm/tests/sequences_test.c created : DATE: Thu 26. June 2001 $Id: sequences_test.c,v 1.2 2002/02/22 23:48:44 achim Exp $Copyright (C) 1998-2001, ZAIK/ZPR, Universit鋞 zu K鰈nThis program is free software; you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation; either version 2 of the License, or(at your option) any later version.This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See theGNU General Public License for more details.You should have received a copy of the GNU General Public Licensealong with this program; if not, write to the Free SoftwareFoundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA*****************************************************************************/#include <stdio.h>#include <stdlib.h>#include <ghmm/sequence.h>void sequence_alloc_print(void){ sequence_t* seq_array; int i; seq_array= sequence_calloc(1); seq_array->seq_len[0]=10; seq_array->seq_label[0]=100; seq_array->seq_id[0]=101.0; seq_array->seq[0]=(int*)malloc(seq_array->seq_len[0]*sizeof(int)); for (i=0; i<seq_array->seq_len[0]; i++) seq_array->seq[0][i]=1; sequence_print_xml(stdout,seq_array);}int main(){ sequence_alloc_print(); return 0;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -