Looking for Об'єктно-орієнтоване програмування (1 курс КН) test answers and solutions? Browse our comprehensive collection of verified answers for Об'єктно-орієнтоване програмування (1 курс КН) at moodle.chnu.edu.ua.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
(C++)
(C++)
template <class T > T sum (T * a, T * b)
{T f = 1;
return (* a + * b) - f;
}
int main ()
{Int i = 5, j = 1; double x = 5., y = 6 .;
cout < < sum (& i, & j) < < "" < < sum (& x, & y);
}
(C++)
(C++)
(C++)
(C++)
(C++)
(C++)
char s1 [] = "f1.txt"; char s2 [] = "f2.txt";
ifstream from (s1);
fstream to (s2, ios :: in | ios :: out);
char ch;
from.seekg ~;
from.get (ch);
to.seekp ~;
to.put (ch);
to.seekp (0);
while (to.get (ch))
cout << ch;
cout << endl;
(C++)
сout.width ~;
cout << '(' << "abcdef" << ')';
(C++)