-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathhelp.C
More file actions
23 lines (22 loc) · 642 Bytes
/
Copy pathhelp.C
File metadata and controls
23 lines (22 loc) · 642 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <iostream>
#include <string>
using namespace std;
void print_help()
{
cout << "Usage: huff [options] input_file" << endl
<< endl
<< "Options:" << endl
<< "-o output_file\tName of file to write to" << endl
<< "-d\t\tDecode a huffman encoded file" << endl
<< "-t\t\tOutput table while encoding" << endl
<< "-v\t\tDisplay progressbar" << endl
<< "-c\t\tOutput header to STDOUT or read header from STDIN" << endl
<< endl
<< "Huff encodes or decodes your file with huffman algorithm" << endl
<< endl
<< "Written by Nirav (nirav.com.np)" << endl;
}
void print_help(string help)
{
cout << help << endl;
}