Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: ognik
  • Order by date
  1. ognik

    Initialize character string

    Thanks all :-)
  2. ognik

    Initialize character string

    Awesome thanks Frantois. Is there a good but brief fortran95 language guide you would recomend? Cheers Alan
  3. ognik

    Initialize character string

    Hi, sorry, I had just copied the extracted bit, whole pgm is below. Also I am learning Fortan - so in addition to this slightly trivial point, I would appreciate any improvements you can advise me on -------------------- program sinPluscos1 !Summary...
  4. ognik

    Initialize character string

    Hi - sorry, newbie stuff, I fixed it with 'stars(cntr:1) = '*' But when I try to print it as print *, stars I get a run-time error. So the questions becomes how to initialise a string as n of a char, and then print it - keeping init and print simple 1-liners if possible? Thanks
  5. ognik

    Initialize character string

    Hi - just learning FORTRAN, I want to print a line of '*', thought Id set up the line programmatically as follows: character(len=n) :: stars do cntr = 1, n stars(cntr) = '*' end do However (I'm using silverleaf/plato) I get the following compile error "error 215 - Invalid...

Part and Inventory Search

Back
Top