Changeset 73


Ignore:
Timestamp:
12/16/11 21:36:42 (12 years ago)
Author:
Maciej Komosinski
Message:

a genotype can be passed as a parameter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/gdk/gdktest.cpp

    r68 r73  
    66#include <stdio.h>
    77#include <time.h>
     8#include "stdiofile.h"
    89
    910#include "model.h"
     
    265266findingConverters();
    266267
    267 //Geno g(argc>1?argv[1]:"X[|G:1.23]");
    268 Geno g(argc>1?argv[1]:"//0\np:\nn:\nc:0,0,i=\"abc=7\"\n");
     268SString gen(argc>1?argv[1]:"X[|G:1.23]");
     269if (!strcmp(gen,"-"))
     270        {
     271        gen=0;
     272        StdioFILEDontClose in(stdin);
     273        loadSString(&in,gen);
     274        }
     275Geno g(gen);
    269276printf("\nSource genotype: '%s'\n",(const char*)g.getGene());
    270277printf("                  ( format %c %s)\n",
Note: See TracChangeset for help on using the changeset viewer.