diff --git a/file.pdf b/file.pdf index d350598..f8f1773 100644 Binary files a/file.pdf and b/file.pdf differ diff --git a/lab9/26 b/lab9/26 new file mode 100755 index 0000000..34d70da Binary files /dev/null and b/lab9/26 differ diff --git a/lab9/26.cpp b/lab9/26.cpp index ab99a20..6d4eb65 100644 --- a/lab9/26.cpp +++ b/lab9/26.cpp @@ -1,31 +1,28 @@ #include using namespace std; -template ::value, T>> -class Foo -{ - T x, y; +template ::value, T>> +class Foo { + T x, y; public: - Foo() - { - cout << "x: "; - cin >> x; - cout << "y: "; - cin >> y; - } + Foo() { + cout << "x: "; + cin >> x; + cout << "y: "; + cin >> y; + } - ~Foo() { cout << "Destructor called, nothing to do here."; } + ~Foo() { cout << "Destructor called, nothing to do here."; } - T mx() { return (x > y ? x : y); }; + T mx() { return (x > y ? x : y); }; }; -int main() -{ - Foo bar; +int main() { + Foo bar; - cout << bar.mx() << endl; + cout << bar.mx() << endl; - return 0; -} \ No newline at end of file + return 0; +} diff --git a/lab9/file.org b/lab9/file.org index c5b5d84..725ff94 100644 --- a/lab9/file.org +++ b/lab9/file.org @@ -45,8 +45,8 @@ y: 9.1 #include using namespace std; -template ::value, T>> +template ::value, T>> class Foo { T x, y;