-
Notifications
You must be signed in to change notification settings - Fork 0
/
RunCollatz.c++
68 lines (45 loc) · 935 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
61
62
63
64
65
66
67
68
// -------------------------------
// projects/collatz/RunCollatz.c++
// Copyright (C) 2014
// Glenn P. Downing
// -------------------------------
// -------
// 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;}
/*
% g++-4.7 -pedantic -std=c++11 -Wall Collatz.c++ RunCollatz.c++ -o RunCollatz
% cat RunCollatz.in
1 10
100 200
201 210
900 1000
% valgrind RunCollatz < RunCollatz.in > RunCollatz.out 2>&1
% 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
// GENERATE_LATEX = NO
% doxygen Doxyfile
*/