Changeset 348 for cpp/frams/_demos/loader_test.cpp
- Timestamp:
- 04/09/15 23:51:28 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified cpp/frams/_demos/loader_test.cpp ΒΆ
r299 r348 45 45 else 46 46 { 47 if (strcmp( (const char*)loaded->name,selected))47 if (strcmp(loaded->name.c_str(),selected)) 48 48 continue; 49 49 } 50 puts( (const char*)loaded->genotype);50 puts(loaded->genotype.c_str()); 51 51 return 0; 52 52 } 53 fprintf(stderr,"%d. %s\t(%d characters)\n",count, (const char*)loaded->name,loaded->genotype.len());53 fprintf(stderr,"%d. %s\t(%d characters)\n",count,loaded->name.c_str(),loaded->genotype.len()); 54 54 } 55 55 // the loop repeats until loaded==NULL, which could be beacause of error 56 56 if (loader.getStatus()==MiniGenotypeLoader::OnError) 57 fprintf(stderr,"Error: %s", (const char*)loader.getError());57 fprintf(stderr,"Error: %s",loader.getError().c_str()); 58 58 // (otherwise it was the end of the file) 59 59 if (selected)
Note: See TracChangeset
for help on using the changeset viewer.