PROGRAM modIMPLICIT NONEinteger :: aa=mod(8,2)write(*,*)aEND PROGRAM modi get the errorline 7 : invalid recursive self-reference to MOD detected at )@<end-of-statement>
4/14/2008 2:31:43 PM
TWW isn't gonna do your homework for you.
4/14/2008 2:40:20 PM
its not hw, it was a sample thing i was testing. and i figured it out neways, i called the program mod....that dont work to well.
4/14/2008 2:51:05 PM
;
4/14/2008 3:12:11 PM
"mod" is a protected word (implicit function in fortran) call the program something else[Edited on April 14, 2008 at 3:20 PM. Reason : ^^ oh you figured it out.]
4/14/2008 3:19:29 PM
goddamn if that same error wasted me a good 5 hours over the course of my fortran writing sessions. I'd whip up a short "test" program to see if an equation or two were correct, and i'd always name them something that the compiler would trip over. Spend a hour beating my head against the desk; spend 3 seconds renaming it.
4/14/2008 5:42:19 PM
4/15/2008 10:37:01 AM
haha seriously
4/15/2008 10:51:17 AM
finally just finished the final proj for fortran, i know a lot of the things i did in it were i guess the really long way to do it, but i dont care, it all works, 3000 lines for an RSA decryption program haha
4/15/2008 12:44:16 PM
what class is that for?
4/15/2008 1:07:07 PM
fortran is the language for people with real problems.
4/15/2008 1:46:27 PM
its for basic fortran class, csc 112. and btw after looking in the book for the class for the first time this yr, i just replaces 2000 lines of my code with 1 line, made me feel real smart...so glad its over haha.
4/15/2008 11:31:29 PM
4/15/2008 11:33:11 PM
^spell out the levels for us
4/15/2008 11:45:14 PM
I use fortran all the time here at NASA.Good thing I taught fortran for a while when I was at NCSU, I know it like the back of my hand.
4/16/2008 9:23:06 AM
4/16/2008 9:40:51 AM