-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRunCollatz.c++
60 lines (39 loc) · 842 Bytes
/
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
49
50
51
52
53
54
55
56
57
58
59
60
// -------------------------------
// projects/collatz/RunCollatz.c++
// Copyright (C) 2015
// Glenn P. Downing
// -------------------------------
// --------
// includes
// --------
#include <iostream> // cin, cout
#include "Collatz.h"
// ----
// main
// ----
int main () {
using namespace std;
collatz_solve(cin, cout);
return 0;}
/*
% g++ -pedantic -std=c++11 -Wall Collatz.c++ RunCollatz.c++ -o RunCollatz
% cat RunCollatz.in
1 10
100 200
201 210
900 1000
% RunCollatz < RunCollatz.in > RunCollatz.out
% cat RunCollatz.out
1 10 1
100 200 1
201 210 1
900 1000 1
% doxygen -g
// That creates the file Doxyfile.
// Make the following edits to Doxyfile.
// EXTRACT_ALL = YES
// EXTRACT_PRIVATE = YES
// EXTRACT_STATIC = YES
% doxygen Doxyfile
// That creates the directory html/.
*/