help! f90.help help help help 
Author Message
 help! f90.help help help help

hi,

help me. i got stuck during programming. I'm learning f90 now...
see the both very similar looking modules ( like in C++ class )
i need your quick answer.

1)

if I declare " use b" in "module a" then error happen.
as I know C++ solve this problem with "friend"
any simple way to fix this error?

2)

is there any way to use " c++ class"? because module a and module b
contains same data types and act in the similar way. how about using
"type"?
can "type" be used just like "class" in C++ ?

----------------------------------------------------- source
module a
    use b
    real, dimesion(:,:),allocatable :: a1,a2
    ...
    subroutine aa
        a1=a1+a2+b1+b2
    end subroutine aa
end module a

module b
    use a
    real, dimesion(:,:),allocatable :: a1,a2
    ...
    subroutine aa
        b1=a1+a2+b1+b2
    end subroutine aa
end module b

--------------------- error
"module b" have to declared before it is used!

thanks in advance.
Indy Ko.




Wed, 18 Jun 1902 08:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. ***HELP***HELP***NEED INFORMATION***HELP***HELP

2. HELP HELP HELP HELP

3. HELP HELP HELP HELP

4. Ord Function HELP Please HELP HELP HELP

5. help help help help!!!!!!!!!!!

6. (HELP (HELP (HELP (HELP))))

7. HELP: HELP: HELP: HELP: Online-manual on Expect

8. Help Help Help

9. TopSpeed - ODBC 3.1???? HELP HELP HELP

10. HELP - HELP - HELP

11. HELP HELP HELP - round function error

12. SUPER TAGGING HELP HELP HELP

 

 
Powered by phpBB® Forum Software