diff options
Diffstat (limited to 'docs/Parser.h')
-rw-r--r-- | docs/Parser.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/Parser.h b/docs/Parser.h new file mode 100644 index 0000000..a7c90e9 --- /dev/null +++ b/docs/Parser.h @@ -0,0 +1,16 @@ +#pragma once + +#include <iostream> +#include <istream> + +using std::ostream; + +class Parser { + + friend void operator >> (Parser& p, std::istream& filestream) { + // cout assigned to another object mycout + std::cout << "the file contains:\n" << filestream << std::endl; + mycout << "Value of dx and dy are \n"; + mycout << d.dx << " " << d.dy; + } +} |