Changeset 973 for cpp/frams/_demos/simil_test.cpp
- Timestamp:
- 07/03/20 00:37:13 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/_demos/simil_test.cpp
r895 r973 1 1 // This file is a part of Framsticks SDK. http://www.framsticks.com/ 2 // Copyright (C) 1999-20 16Maciej Komosinski and Szymon Ulatowski.2 // Copyright (C) 1999-2020 Maciej Komosinski and Szymon Ulatowski. 3 3 // See LICENSE.txt for details. 4 4 … … 78 78 M.m_adFactors[i] = -1.0; 79 79 } 80 80 81 81 iCurrParam++; 82 82 szCurrParam = argv[iCurrParam]; 83 int measure_type = -1; 83 int measure_type = -1; 84 84 nResult = sscanf(szCurrParam, "%d", &measure_type); 85 85 if (nResult != 1) … … 88 88 return -1; 89 89 } 90 90 91 91 if (measure_type != 0 && measure_type != 1) 92 92 { 93 93 printf("Measure type should be 0 (flexible criteria order and optimal matching) or 1 (vertex degree order and greedy matching)!\n"); 94 return -1; 95 } 96 94 return -1; 95 } 96 97 97 M.matching_method = measure_type; 98 98 … … 150 150 // while a valid genotype was loaded 151 151 count++; 152 totalsize += loaded->genotype.len ();152 totalsize += loaded->genotype.length(); 153 153 // create a Geno object based on the MiniGenotype 154 154 Geno *pNextGenotype = new Geno(loaded->genotype); … … 156 156 { 157 157 pvGenos.push_back(pNextGenotype); 158 char *szNewName = new char[loaded->name.len () + 1];158 char *szNewName = new char[loaded->name.length() + 1]; 159 159 strcpy(szNewName, loaded->name.c_str()); 160 160 pvNames.push_back(szNewName);
Note: See TracChangeset
for help on using the changeset viewer.