Ignore:
Timestamp:
07/14/20 15:54:43 (9 months ago)
Author:
Maciej Komosinski
Message:

Higher conformance with C++17, but gave up after missing M_PI, M_PI_2, strdup() and more; other cosmetic improvements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/_demos/simil_test.cpp

    r1004 r1005  
    1919{
    2020        LoggerToStdout messages_to_stdout(LoggerBase::Enable);
    21         typedef double *pDouble;
    2221        int iCurrParam = 0; // index of the currently processed parameter
    2322        char *szCurrParam = NULL;
     
    172171        double **aaSimil = NULL; // array of similarities
    173172
    174         // create the empty array of similarities
    175         aaSimil = new pDouble[pvGenos.size()];
     173        // create an empty array of similarities
     174        aaSimil = new double*[pvGenos.size()];
    176175        for (unsigned int k = 0; k < pvGenos.size(); k++)
    177176        {
     
    181180        }
    182181
    183         // compute and remember similarities
     182        // compute and store similarities
    184183        for (unsigned int i = 0; i < pvGenos.size(); i++)
    185184        {
     
    193192        if (bPrintNames)
    194193        {
    195                 // if "-names" switch was given, print the number of genotypes and their names
     194                // if the "-names" switch was given, print the number of genotypes and their names
    196195                printf("%li\n", pvGenos.size());
    197196                for (unsigned int iGen = 0; iGen < pvNames.size(); iGen++)
Note: See TracChangeset for help on using the changeset viewer.