作者yesflower (我是男人 N )
看板Fortran
标题Re: 超新手问题
时间Wed Oct 7 12:26:38 2009
--------------------Configuration: PERSON - Win32 Debug--------------------
Compiling Fortran...
C:\Program Files\Microsoft Visual Studio\MyProjects\PERSON\PERSON.F90
C:\Program Files\Microsoft Visual Studio\MyProjects\PERSON\PERSON.F90(5) : Error: Syntax error, found IDENTIFIER 'ID' when expecting one of: DO FORALL SELECT SELECTCASE WHERE IF
INTEGER:ID
--------^
C:\Program Files\Microsoft Visual Studio\MyProjects\PERSON\PERSON.F90(6) : Error: Syntax error, found IDENTIFIER 'BIRTHDATE' when expecting one of: DO FORALL SELECT SELECTCASE WHERE IF
INTEGER:BIRTHDATE
--------^
C:\Program Files\Microsoft Visual Studio\MyProjects\PERSON\PERSON.F90(5) : Error: This statement is not permitted as a statement within a derived-type-def
INTEGER:ID
^
C:\Program Files\Microsoft Visual Studio\MyProjects\PERSON\PERSON.F90(6) : Error: This statement is not permitted as a statement within a derived-type-def
INTEGER:BIRTHDATE
^
C:\Program Files\Microsoft Visual Studio\MyProjects\PERSON\PERSON.F90(16) : Error: This is not a field name that is defined in the encompassing structure. [ID]
read(*,*) v%ID
----------------------^
C:\Program Files\Microsoft Visual Studio\MyProjects\PERSON\PERSON.F90(18) : Error: This is not a field name that is defined in the encompassing structure. [BIRTHDATE]
read(*,*) v%BIRTHDATE
----------------------^
Error executing df.exe.
PERSON.OBJ - 6 error(s), 0 warning(s)
是因为我没输入六个变数吗? 还是不太懂 qq
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.115.72.26
1F:→ gazzy:INTEGER::ID 10/07 12:41
2F:→ gazzy:INTEGER::BIRTHDAte 10/07 12:41
3F:→ gazzy:没试过,不确定 10/07 12:42
4F:推 fishbaby314:应该是楼上讲的,宣告ID跟BIRTHDAte时冒号:少一个 10/07 16:02
5F:→ yesflower:对了 谢谢各位 10/08 16:43