-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathallocatable_array.html
99 lines (79 loc) · 2.39 KB
/
allocatable_array.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<html>
<head>
<title>
ALLOCATABLE_ARRAY - Allocatable Arrays as Output Arguments
</title>
</head>
<body bgcolor="#EEEEEE" link="#CC0000" alink="#FF3300" vlink="#000055">
<h1 align = "center">
ALLOCATABLE_ARRAY <br> Allocatable Arrays as Output Arguments
</h1>
<hr>
<p>
<b>ALLOCATABLE_ARRAY</b>
is a C++ program which
demonstrates how a main program can declare an allocatable array, which is
then passed to a subroutine which allocates it, initializes it, and returns
it to the calling program for further use.
</p>
<h3 align = "center">
Licensing:
</h3>
<p>
The computer code and data files described and made available on this web page
are distributed under
<a href = "../../txt/gnu_lgpl.txt">the GNU LGPL license.</a>
</p>
<h3 align = "center">
Languages:
</h3>
<p>
<b>ALLOCATABLE_ARRAY</b> is available in
<a href = "../../c_src/allocatable_array/allocatable_array.html">a C version</a> and
<a href = "../../cpp_src/allocatable_array/allocatable_array.html">a C++ version</a> and
<a href = "../../f_src/allocatable_array/allocatable_array.html">a FORTRAN90 version</a>.
</p>
<h3 align = "center">
Related Data and Programs:
</h3>
<p>
<a href = "../../cpp_src/c/c.html">
CPP</a>,
C++ programs which
illustrate some of the features of the C programming language.
</p>
<p>
<a href = "../../cpp_src/c_arrays/cpp_arrays.html">
CPP_ARRAYS</a>,
C++ programs which
illustrate the use of vectors, matrices and tensors.
</p>
<h3 align = "center">
Examples and Tests:
</h3>
<p>
<ul>
<li>
<a href = "allocatable.cpp">allocatable.cpp</a>, the source code;
</li>
<li>
<a href = "allocatable.sh">allocatable.sh</a>,
commands to compile and run the source code;
</li>
<li>
<a href = "allocatable_output.txt">allocatable_output.txt</a>,
the output file;
</li>
</ul>
</p>
<p>
You can go up one level to <a href = "../cpp_src.html">
the C++ source codes</a>.
</p>
<hr>
<i>
Last revised on 25 February 2014.
</i>
<!-- John Burkardt -->
</body>
</html>