Changeset 348 for cpp/frams/_demos/multiline_f0_test.cpp
- Timestamp:
- 04/09/15 23:51:28 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/_demos/multiline_f0_test.cpp
r286 r348 19 19 20 20 SString gen(argc>1?argv[1]:"X[|G:1.23]"); 21 if (!strcmp(gen ,"-"))21 if (!strcmp(gen.c_str(),"-")) 22 22 { 23 23 gen=0; … … 26 26 } 27 27 Geno g(gen); 28 printf("\nSource genotype: '%s'\n", (const char*)g.getGene());28 printf("\nSource genotype: '%s'\n",g.getGene().c_str()); 29 29 printf(" ( format %c %s)\n", 30 g.getFormat(), (const char*)g.getComment());30 g.getFormat(), g.getComment().c_str()); 31 31 32 32 Model m(g);//.getConverted('0')); … … 37 37 return 2; 38 38 } 39 printf("Converted to f0:\n%s\n", (const char*)m.getF0Geno().getGene());39 printf("Converted to f0:\n%s\n",m.getF0Geno().getGene().c_str()); 40 40 41 41 printf("\nusing Param::save() to create the \"expanded\" form of the f0 genotype...\n(MultiParamLoader should be able to load this)"); … … 87 87 } 88 88 89 printf("\n============================\n%s\n", (const char*)f.getString());89 printf("\n============================\n%s\n",f.getString().c_str()); 90 90 91 91 return 0;
Note: See TracChangeset
for help on using the changeset viewer.