forked from cs371p-fall-2013/cs371p-collatz-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdaraoke-RunCollatz.c++
48 lines (38 loc) · 874 Bytes
/
daraoke-RunCollatz.c++
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
// -------------------------------
// projects/collatz/RunCollatz.c++
// Copyright (C) 2013
// Glenn P. Downing
// -------------------------------
/*
To run the program:
% g++ -pedantic -std=c++0x -Wall Collatz.c++ RunCollatz.c++ -o RunCollatz
% valgrind RunCollatz < RunCollatz.in > RunCollatz.out
To configure Doxygen:
% doxygen -g
That creates the file "Doxyfile".
Make the following edits:
EXTRACT_ALL = YES
EXTRACT_PRIVATE = YES
EXTRACT_STATIC = YES
GENERATE_LATEX = NO
To document the program:
% doxygen Doxyfile
*/
// -------
// defines
// -------
#ifdef ONLINE_JUDGE
#define NDEBUG
#endif
// --------
// includes
// --------
#include <iostream> // cin, cout
#include "Collatz.h"
// ----
// main
// ----
int main () {
using namespace std;
collatz_solve(cin, cout);
return 0;}