-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtemplate.cpp
More file actions
232 lines (189 loc) · 8.55 KB
/
Copy pathtemplate.cpp
File metadata and controls
232 lines (189 loc) · 8.55 KB
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
//-------|---------|---------|---------|---------|---------|---------|---------|
//
// <FileName>.<Extension>
//
//-------|---------|---------|---------|---------|---------|---------|---------|
//-----------------------------------------------------------------------------|
// AUTHORSHIP
//-----------------------------------------------------------------------------|
//
// <FirstName> <LastName>
// <ContactInformation>
// Created: <YYYY.MM.DD>
// Modified: <YYYY.MM.DD>
//
//-----------------------------------------------------------------------------|
// ACKNOWLEDGMENTS
//-----------------------------------------------------------------------------|
//
// Template author:
// Tim Lum (github.com/Teabeans/Template_Cpp)
//
// Refer to ACKNOWLEDGEMENTS.txt
//
//-----------------------------------------------------------------------------|
// FILE DESCRIPTION
//-----------------------------------------------------------------------------|
//
// <Short explanation of file purpose and function>
//
// (If this file contains 'main()' ) Program Description:
// <Explanation of overall program purpose and function>
//
//-----------------------------------------------------------------------------|
// PACKAGE FILES
//-----------------------------------------------------------------------------|
//
// Refer to PACKAGEFILES.txt
//
//-----------------------------------------------------------------------------|
// USAGE
//-----------------------------------------------------------------------------|
//
// <Description of setup and usage>
//
//-----------------------------------------------------------------------------|
// ERRATA
//-----------------------------------------------------------------------------|
//
// <Any other comments>
//
//-----------------------------------------------------------------------------|
// LICENSE
//-----------------------------------------------------------------------------|
//
// <License> or <Refer to LICENSE.txt>
//
//-----------------------------------------------------------------------------|
// CODE STANDARDS
//-----------------------------------------------------------------------------|
//
// <Standards> or <Refer to CODESTANDARDS.txt>
//
//-----------------------------------------------------------------------------|
// IMPORTS / INCLUDES
//-----------------------------------------------------------------------------|
// CONTAINERS
// #include <array> // http://www.cplusplus.com/reference/array/array/
// #include <deque> // http://www.cplusplus.com/reference/deque/deque/
// #include <forward_list> // http://www.cplusplus.com/reference/forward_list/forward_list/
// #include <list> // http://www.cplusplus.com/reference/list/list/
// #include <map> // http://www.cplusplus.com/reference/map/map/
// #include <queue> // http://www.cplusplus.com/reference/queue/queue/
// #include <set> // http://www.cplusplus.com/reference/set/set/
// #include <stack> // http://www.cplusplus.com/reference/stack/stack/
// #include <unordered_map> // http://www.cplusplus.com/reference/unordered_map/unordered_map/
// #include <unordered_set> // http://www.cplusplus.com/reference/unordered_set/unordered_set/
// #include <vector> // http://www.cplusplus.com/reference/vector/vector/
// INPUT / OUTPUT
#include <iostream> // For input/output (C++)
// #include <stdio.h> // For input/output (C)
#include <iomanip> // For width-formatted outputs
// #include <fstream> // For file-stream
// MULTITHREADING
// #include <pthread.h> // https://www.tutorialspoint.com/cplusplus/cpp_multithreading.htm
// #include <atomic> // http://www.cplusplus.com/reference/atomic/
// #include <condition_variable> // http://www.cplusplus.com/reference/condition_variable/
// #include <future> // http://www.cplusplus.com/reference/future/
// #include <mutex> // http://www.cplusplus.com/reference/mutex/
// #include <thread> // http://www.cplusplus.com/reference/thread/thread/
// EXCEPTIONS
#include <exception> // http://www.cplusplus.com/reference/exception/exception/
#include <assert.h> // http://www.cplusplus.com/reference/cassert/assert/
// OTHER
#include <algorithm> // http://www.cplusplus.com/reference/algorithm
#include <chrono> // http://www.cplusplus.com/reference/chrono/
// #include <time.h> // Superceded by <chrono>
#include <random> // http://www.cplusplus.com/reference/random/
#include <string> // http://www.cplusplus.com/reference/string/
#include <sstream> // http://www.cplusplus.com/reference/sstream/
#include <utility> // http://www.cplusplus.com/reference/utility/
// #include <unistd.h> // Provides access to the POSIX operating system AP
#include <climits> // http://www.cplusplus.com/reference/climits/
// CLASS DECLARATIONS
// #include "MyFile.h"
//-----------------------------------------------------------------------------|
// DECLARATIONS
//-----------------------------------------------------------------------------|
// None declared in the .cpp
//-----------------------------------------------------------------------------|
// DEFINES
//-----------------------------------------------------------------------------|
// #define NDEBUG // Omit for assertions, include to disable
#define PI 3.141569
#define TAU 6.283185
#define FAVORITE_COLOR gray
//-----------------------------------------------------------------------------|
// GLOBAL VARIABLES
//-----------------------------------------------------------------------------|
bool VERBOSE = true;
bool DEBUG_MODE = true;
int INT_PI = 3;
int INT_TAU = 6;
float FLOAT_PI = 3.14159265;
float FLOAT_TAU = 6.28318530;
double DOUBLE_PI = 3.141592653589793238;
double DOUBLE_TAU = 6.283185307179586476;
//-----------------------------------------------------------------------------|
// NAMESPACES
//-----------------------------------------------------------------------------|
// NOTE: Use of namespaces is discouraged
// using namespace std;
//-----------------------------------------------------------------------------|
// PRIVATE CLASS FIELDS
//-----------------------------------------------------------------------------|
// None declared in the .cpp
//-----------------------------------------------------------------------------|
// PRIVATE CLASS METHODS
//-----------------------------------------------------------------------------|
// None for this class
//-----------------------------------------------------------------------------|
// CONSTRUCTORS / DESTRUCTORS
//-----------------------------------------------------------------------------|
// None for this class
//-----------------------------------------------------------------------------|
// CLASS GETTERS/SETTERS
//-----------------------------------------------------------------------------|
// None for this class
//-----------------------------------------------------------------------------|
// PUBLIC CLASS FIELDS
//-----------------------------------------------------------------------------|
// None declared in the .cpp
//-----------------------------------------------------------------------------|
// PUBLIC CLASS METHODS
//-----------------------------------------------------------------------------|
// None for this class
//-----------------------------------------------------------------------------|
// DRIVER (If applicable)
//-----------------------------------------------------------------------------|
int main( int argc, char* argv[] ) {
printHelloWorld( );
std::string assertTest = "This is a test";
assert( assertTest == "This is a test" );
return( 0 );
}
//-----------------------------------------------------------------------------|
// STATIC METHODS
//-----------------------------------------------------------------------------|
// (+) --------------------------------|
// #printHelloWorld( )
// ------------------------------------|
// Desc: Prints "Hello, World!" to console out
// Params: None
// PreCons: None
// PosCons: None
// RetVal: None
void printHelloWorld( ) {
std::cout << "Hello, World!" << std::endl;
} // Closing printHelloWorld( )
// (+) --------------------------------|
// #someMethod( )
// ------------------------------------|
// Desc: TODO
// Params: TODO
// PreCons: TODO
// PosCons: TODO
// RetVal: TODO
void myClass::someMethod( ) {
} // Closing someMethod( )
// End of file - <FileName>.<Extension>