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: }

相关文章:

  • 2021-11-07
  • 2022-01-02
  • 2021-08-02
猜你喜欢
  • 2018-10-08
  • 2021-12-09
  • 2021-08-24
  • 2022-03-03
  • 2022-02-08
相关资源
相似解决方案