Computing.Net > Forums > Programming > Conversion of C++ into Fortran

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Conversion of C++ into Fortran

Reply to Message Icon

Name: priti
Date: September 27, 2003 at 22:19:27 Pacific
OS: WIn XP
CPU/Ram: P4
Comment:

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.



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Conversion of C++ into Fortran

conversion of struct into class www.computing.net/answers/programming/conversion-of-struct-into-class-/7465.html

Want to Download free ver of C++ for win www.computing.net/answers/programming/want-to-download-free-ver-of-c-for-win/441.html

C Matrix application in PVM www.computing.net/answers/programming/c-matrix-application-in-pvm/6661.html