git://www.ginac.de
/
ginac.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* Minor optimization: swap instead of assign.
[ginac.git]
/
tools
/
viewgar.cpp
diff --git
a/tools/viewgar.cpp
b/tools/viewgar.cpp
index 19f27df149762da615bcf25a5743feca05015f1e..874cca4112b09dd4a3c8086dc38e1d8fab3680ac 100644
(file)
--- a/
tools/viewgar.cpp
+++ b/
tools/viewgar.cpp
@@
-3,7
+3,7
@@
* GiNaC archive file viewer. */
/*
* GiNaC archive file viewer. */
/*
- * GiNaC Copyright (C) 1999-200
1
Johannes Gutenberg University Mainz, Germany
+ * GiNaC Copyright (C) 1999-200
4
Johannes Gutenberg University Mainz, Germany
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@
-20,19
+20,20
@@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include <
stdio.h
>
-#include <
stdlib.h
>
+#include <
cstdlib
>
+#include <
iostream
>
#include <fstream>
#include <stdexcept>
#include "ginac.h"
#include <fstream>
#include <stdexcept>
#include "ginac.h"
+using namespace std;
using namespace GiNaC;
int main(int argc, char **argv)
{
if (argc < 2) {
using namespace GiNaC;
int main(int argc, char **argv)
{
if (argc < 2) {
-
fprintf(stderr, "Usage: %s [-d] file...\n", argv[0])
;
+
cerr << "Usage: " << argv[0] << " [-d] file..." << endl
;
exit(1);
}
--argc; ++argv;
exit(1);
}
--argc; ++argv;