any good C/fortran code sites?  | |
March 9th, 2003, 02:11 PM
|
#1 (permalink)
| | Senior Member
Join Date: Oct 2001
Posts: 881
| any good C/fortran code sites?
here's the story. I'm a grad student in theoritical chemistry. I'm very comfortable in java, but don't know any other language. Unfortunately, the field uses fortran and C for it's programs. Anyway, my final project for my statistical mechanics course involves disecting some code in both fortran and C, but i don't know any of the syntax.
do any of you have/know of any sites that are very user friendly and informative for looking up C/fortran syntax?
thanks all!
-Z |
| |
March 9th, 2003, 09:18 PM
|
#2 (permalink)
| | Banned
Join Date: Oct 2001
Posts: 447
|
If your comfortable with Java, then C/FORTRAN should be a snap.
C and FORTRAN have maybe 20 STATEMENTs, all which java does, just a matter of syntax, though probably what you are asking.
Either google or buy some cheap books. www.bookpool.com
seems, not many cheap books there... |
| |
March 9th, 2003, 10:20 PM
|
#3 (permalink)
| | Senior Member
Join Date: Oct 2001
Posts: 881
|
thx q... i'll see what i can dig up around the dept. first too
-Z |
| |
March 9th, 2003, 10:29 PM
|
#4 (permalink)
| | Anime Otaku
Join Date: Oct 2001 Location: Tampa, FL USA
Posts: 108,969
|
You'll have little problem learning C, as it closely parallels J for most conventions.
You may have a harder time with Fortran, especially considering if its an older version. F9x should prove safe enough for a person experienced with J, but if your using something like Fortran 7x, then I definitely recommend obtaining a good programming guide. My scientific application development classes required F77, and it was not too fun having to deal with the archaic code conventions.
Robert Richmond
__________________ Robert Richmond | TechIMO Community Relations Director
Infinite perceptions. One reality. FanFiction.Net - Unleash your imagination. |
| |
March 10th, 2003, 02:38 AM
|
#5 (permalink)
| | Senior Member
Join Date: Oct 2001
Posts: 881
|
cool, thanks for the advice rob... i'm not sure w/ version it is... .i hope that it's fortran 90, but not positive... we'll see
-Z |
| |
March 10th, 2003, 08:56 PM
|
#6 (permalink)
| | Banned
Join Date: Oct 2001
Posts: 447
| Quote: |
My scientific application development classes required F77, and it was not too fun having to deal with the archaic code conventions.
| Is that the first six columns of a line are 'reserved' (one is comment, a few are for branching/goto, forgot the others.. Or are you really old school and no for/while loops?
Regardless being 2003, hopefully it's the FORTRAN I was doing 7 yrs ago, and that was pretty easy, though no OO! |
| |
March 10th, 2003, 09:06 PM
|
#7 (permalink)
| | Anime Otaku
Join Date: Oct 2001 Location: Tampa, FL USA
Posts: 108,969
|
Fotran 77 is the wonderful world of never ending "goto" statements. Test loops are available, but most other control options were non-existent.
And yes, the first series of columns are reserved. Worst part? We developed applications on a shell account on a VAX system. Definitely not the high point of my education. |
| |
March 11th, 2003, 09:16 PM
|
#8 (permalink)
| | Banned
Join Date: Oct 2001
Posts: 447
|
Aahh the GOTO.
Did that in college, talk about spaghetti code. Loops really do make a difference... |
| | | Thread Tools | Search this Thread | | | | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Most Active Discussions | | | | | Recent Discussions  | | | | | |