Fortran Question Right Here
- Anmelden oder Registrieren um Kommentare zu schreiben
What is the use of stating "implicit none" at the start of your FORTRAN?
The picture shoes what a user on Reddit said.
Okay. No picture. My browser does not support the upload dialog.
Anyway basically the guy on reddit said if I do not state "implicit none" then all variables starting with i,j,k,l,m,n will all be of data type integer.
also if your wondering thats why alot of programmers still today use i j and k for counters
at least thats what a c programming book told me
Oh okay. But. Lol. Does no one count in floating points at all. I have never requires counting in anything else than integers tho. So that's a fair point I guess.
Do you have any advice on good Fortran or C books.
=====================================================
FOR C(advanced)
this book isnt that accessible but has loads and loads of in depth info about c and assembly
you can buy the book here:
https://www.crcpress.com/product/isbn/9781466568242
or if you dont have the money use the pdf here:
http://s000.tinyupload.com/index.php?file_id=00558589031688751903
=====================================================
======================================================
FOR C(advanced)
a very good c book for more advanced c programmers i have is expert c programming deep c secrets
heres a pdf:
http://www.e-reading.club/bookreader.php/138815/Linden_-_Expert_C_Programming:_Deep_C_Secrets.pdf
====================================================
FOR c++(and so for c aswell)(begginers)
also if you want a more beginners book this one helped me alot its for c++(i started in c++ before i learnt c)
but as the languages are very very similar it can also
be used as a c programming book:
you can also get it as a pdf from here:
http://www.barnesandnoble.com/w/beginning-c-through-game-programming-mike-dawson/1100025792?ean=9781435457423
=======================================
FOR c++(and so for c)(intermediate)
theres another book called thinking in c++
that again is for c++ but i found it very helpfull with
my c programming and learn c++ as-well cant hurt
you can buy the book here
http://mindview.net/Books/TICPP/ThinkingInCPP2e.html
a online html version of the book:
http://www.smart2help.com/e-books/ticpp-2nd-ed-vol-one/Frames.html
========================================
FOR FORTRAN(intermediate)
you can also buy the book here:
http://www.ebay.co.uk/itm/Expert-C-Programming-Deep-C-Secrets-Peter-van-der-Linden-/161693233748?pt=LH_DefaultDomain_3&hash=item25a5aaf254
you can buy the book here to support the authors
https://global.oup.com/academic/product/modern-fortran-explained-9780199601417?cc=gb&lang=en&
or use the attached pdf if you can not afford the book
=======================================================
Anhang | Größe |
---|---|
Cambridge.University.Modern.Fortran.2012.RETAIL.eBook-repackb00k.pdf.tar.xz | 1.58 MB |
So is counting in decimal values useless.I think so. Unless you are simply counting and printing them to the screen, other than that it seems useless, like you will always do a for loop through an array with integers it makes no sense to do so with a decimal counter as indexes in arrays are always represented by integers and not deciamls.
Okay. So I just discovered that in Fortran, functions must be in a seperate file and not the "program" file, however subroutines can be in the "program" file, although they are called "subroutines" for a reason.
In that they are routines other than the main routine which is the "program HelloWorld" (for example).
I am taking little baby steps into this language. And I think will will begin to like it.
- Anmelden oder Registrieren um Kommentare zu schreiben