Exemple #1
0
int main(){
	struct node *head1;
	struct node *ptr;
	head1 = inputList();
	int blockSize = 0;
	ptr = head1;
	scanf("%d",&blockSize);
	order(head1, blockSize);
	while(ptr!=NULL){
		printf("%d ",ptr->data);
		ptr = ptr->next;
	}

}
Exemple #2
0
int main(int argc, char* argv[]){

  const int Nparam=3;   // NUMBER OF PARAMETERS

  if(argc!=Nparam+1){
    std::cout << "main() : arcg = " << argc << " is different from " << Nparam+1 <<". Exiting." << std::endl;
    std::cout << "Usage  : ./main inputList.txt treeList.txt outputFile" << std::endl;
    exit (1);
  };
  
  std::string inputList(argv[1]);
  std::string treeList (argv[2]);
  std::string outFile  (argv[3]);
  
  analysisClassL1 analysis (inputList, treeList, outFile);
  
  analysis.run();
}