Is there any problem with the following program?
- From: "zhngbn" <bin.zhngbn@xxxxxxxxx>
- Date: 29 Dec 2006 19:03:04 -0800
I find the following program in a book:
program ex0413
character(len=20) string
string = "Good morning."
write(*, *) string
string(6) = "evening."
write(*, *) string
end
When it is complied by CVF, the following error is displayed:
Error: This name has not been declared as an array. [STRING]
string(6) = "evening."
So, can anyone tell me what is the problem? Thanks a lot.
.
- Follow-Ups:
- Re: Is there any problem with the following program?
- From: Tim Prince
- Re: Is there any problem with the following program?
- From: Beliavsky
- Re: Is there any problem with the following program?
- Prev by Date: Re: OT: Disappointed with Intel and Polyhedron
- Next by Date: Re: Proper way to return a string
- Previous by thread: allocation error
- Next by thread: Re: Is there any problem with the following program?
- Index(es):