Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi,
I need help on conversation of following C++ code into Fortran.time_t start, end;
int *myArray = new int[arraySize]time(&start)
cout << "\n Enter the size of array:";
cin >> size;
for (int i=0; i<size; i++){
cin >> myarray[i];
cout << " ";
}
seleSort(myarray, size);
cout << "\nSorted Array is: " ;
for (int j =0; j<size; j++){
cout << myarray[j] << " ";
}
time(&end);
diff = difftime(end, start);
cout << "\nTotal Cpu time taken " << diff << endl;
return 0;
}Any help will be greatly appreciated. I'm new to Fortran, so i need help in conversion of this C++ code to Fortran code.
Thanks.

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |