Line | |
---|
1 |
|
---|
2 | #include <iostream.h>
|
---|
3 | #include <fstream.h>
|
---|
4 | #include <iomanip.h>
|
---|
5 |
|
---|
6 | #include "archeopsfile.h"
|
---|
7 | #include "archtoi.h"
|
---|
8 | #include "toisvr.h"
|
---|
9 |
|
---|
10 | #ifdef __MWERKS__
|
---|
11 | #include <console.h>
|
---|
12 | #endif
|
---|
13 |
|
---|
14 | using namespace std; //introduces namespace std
|
---|
15 |
|
---|
16 | int main(int argc, char** argv)
|
---|
17 | {
|
---|
18 | #ifdef __MWERKS__
|
---|
19 | argc = ccommand(&argv);
|
---|
20 | #endif
|
---|
21 | if (argc != 2) {
|
---|
22 | cerr << "usage: archtoidump file" << endl;
|
---|
23 | return(-1);
|
---|
24 | }
|
---|
25 | ArcheopsFile file(argv[1]);
|
---|
26 | while (file.nextBlock()) {
|
---|
27 | cout << file.blockKdName() << "\n";
|
---|
28 | }
|
---|
29 | }
|
---|
30 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.