Re: 超新手問題
--------------------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
→
10/07 12:41, , 1F
10/07 12:41, 1F
→
10/07 12:41, , 2F
10/07 12:41, 2F
→
10/07 12:42, , 3F
10/07 12:42, 3F
推
10/07 16:02, , 4F
10/07 16:02, 4F
→
10/08 16:43, , 5F
10/08 16:43, 5F
討論串 (同標題文章)
Fortran 近期熱門文章
PTT數位生活區 即時熱門文章