コード例 #1
0
ファイル: vcf.cpp プロジェクト: MMesbahU/Pipeliner
void vcf::info_to_stdout () {
    
    cout << "Infile: " << infile << " (" << inds << " individuals, " << matrix.size() << " sites from chromosome " << chromosome
    << ", names: " << names.at(0);
    
    for( int i = 1; i < num_inds(); i++)
        cout << ", " << names.at(i);
    
    cout << ")\n";
}
コード例 #2
0
ファイル: mesh.c プロジェクト: gbbofh/objread
void parse_faces(obj_face* oface, meshdata* mesh) {
    obj_face* cur = oface;
    char* facedata;
    mesh->num_indx = 0;
    while(cur->next != NULL) {
        mesh->num_indx += num_inds(cur);
        cur = cur->next;
    }
    msg_log(LOG_INFO, "%d Triangle Indices", mesh->num_indx);
    mesh->indx = malloc(mesh->num_indx * sizeof(int));

    cur = oface;

/*    while(cur->next != NULL) {
        facedata = cur->face;
        while(*facedata != '\n') {
            facedata++;
        }
        cur = cur->next;
    }*/
}