Français
Ouvrir dans Telegram

Fil de discussionusing System;

7 messages · –
K
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Ulugbekovna_Lobar { class Counter { public int Value { get; set; } public static bool operator >(Counter c1, Counter c2) { return c1.Value > c2.Value; } public static bool operator <(Counter c1, Counter c2) { return c1.Value < c2.Value; } } class Program { static void Main(string[] args) { Counter c1 = new Counter { Value = 23 }; Counter c2 = new Counter { Value = 45 }; bool result = c1 > c2; Console.WriteLine(result); bool result = c1 < c2; Console.WriteLine(result1); Console.ReadKey(); } } }
    1. .
      using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Ulugbekovna_Lobar { class Counter { public int Value { get; set; } public static bool operator >(Counter c1, Counter c2) { return c1.Value > c2.Value; } public static bool operator <(Counter c1, Counter c2) { return c1.Value < c2.Value; } } class Program { static void Main(string[] args) { Counter c1 = new Counter { Value = 23 }; Counter c2 = new Counter { Value = 45 }; bool result = c1 > c2; Console.WriteLine(result); bool result1 = c1 < c2; Console.WriteLine(result1); Console.ReadKey(); } } }
CC++ vs PythonC++ vs Python@cpp_vs_python · groupe · Technologie
114membres39 409messages dans l'index
Fil de la communauté Ouvrir dans Telegram

Un fil public ouvert issu de l'index de recherche ChatCrawler — « le Google du Telegram public » ; actualisé à mesure que la communauté est explorée. Les heures sont en UTC.

Contenu public uniquement, API officielle de Telegram. À propos · FAQ · Limites de l'index · Retirer une page · Catalogue · Recherche · Comment nous comptons