Changeset 955 for cpp/frams/_demos/genooper_test.cpp
- Timestamp:
- 06/25/20 00:34:29 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/_demos/genooper_test.cpp
r534 r955 8 8 void printGen(Geno &g) 9 9 { 10 printf("Genotype: %s\nFormat: % c\nValid: %s\nComment: %s\n",11 g.getGenes().c_str(), g.getFormat(), g.isValid() ? "yes" : "no", g.getComment().len() == 0 ? "(empty)" : g.getComment().c_str());10 printf("Genotype: %s\nFormat: %s\nValid: %s\nComment: %s\n", 11 g.getGenes().c_str(), g.getFormat().c_str(), g.isValid() ? "yes" : "no", g.getComment().len() == 0 ? "(empty)" : g.getComment().c_str()); 12 12 } 13 13 … … 30 30 Geno gsrc(src, -1, "First"); 31 31 printGenAndTitle(gsrc, "source genotype (gsrc)"); 32 charformat = gsrc.getFormat();32 SString format = gsrc.getFormat(); 33 33 34 34 Geno gmut = genetics.genman.mutate(gsrc); … … 41 41 printGenAndTitle(gsimplest, "simplest"); 42 42 43 Geno ginvalid("IT'S REALLY WRONG", format );43 Geno ginvalid("IT'S REALLY WRONG", format.c_str()); 44 44 printGenAndTitle(ginvalid, "invalid"); 45 45
Note: See TracChangeset
for help on using the changeset viewer.