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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Display Array

Status
Not open for further replies.

scottix

Programmer
Nov 28, 2006
1
US
I am using gfortran
I want to display array as:
cCode(1)cCode(2)etc..
instead I get
cCode(1)
cCode(2)
etc...

Here is my code
character cCode(iMSolution)
write(*,'(A)') cCode

How do I get it the way I want?
 
Code:
character*16:: fmt
write (fmt,10) iMSolution
10 format ('(',I3,'A)')
write(*,fmt) cCode
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top