18 call d%set(
'one',
'one')
19 call d%set(
'pi',
'3.14159')
20 call d%set(
'abc',
'first three letters from the alphabet')
21 call d%set(
'1',
'number one')
22 call d%set(
'a',
'letter a')
23 call d%set(
'fortran',
'programming language')
25 write(*,*)
'one',
' = ', d%get(
'one')
26 write(*,*)
'pi',
' = ', d%get(
'pi')
27 write(*,*)
'XYZ',
' = ', d%get(
'XYZ')
31 call d%set(
'pi',
'pi is the ratio of the perimeter of a circle to its radius')
33 write(*,*)
'pi',
' = ', d%get(
'pi')
35 write(*,*)
'output from the method show'
program test_01
Define a dictionary_t object, populate it with keys and values, and list the results with the show me...
The dictionary contains dict_size buckets (defined at run time)
Dictionary type that uses strings for the keys and values.