#include <iostream> using namespace std; class unrelat{ }; class unrelat_1 { }; int Convert( class unrelat_1 &c, class unrelat &d){ int i = 5; cin >> i ; c = d; c = static_cast<unrelat_1>(d); c = (unrelat_1)d; return (i*10+35) ; } int main() { int out; unrelat_1 a; unrelat b; out = Convert(a, b); cout << out ; return 0; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)