using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
5:
namespace ConsoleApplication1
7: {
class Program
9: {
10:
class CAdd
12: {
int val;
string str;
bool bok;
16:
operator + (CAdd a, CAdd b)
18: {
new CAdd();
20: c.val = a.val + b.val;
21: c.str = a.str + b.str;
22: c.bok = a.bok && b.bok;
return c;
24: }
25:
26: }
27:
string[] args)
29: {
new CAdd();
new CAdd();
new CAdd();
33:
34: a.val = 3;
;
true;
37:
38: b.val = 5;
;
false;
41:
42: d.val = 5;
;
false;
45:
46: CAdd c = a + b + d;
47: Console.ReadLine();
48: }
49: }
50: }