Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
per1
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { class ThreeD { int x,y,z; public ThreeD() { x=y=z=0; } public ThreeD(int a, int b, int c) { x=a; y=b; z=c; } public static ThreeD operator +(ThreeD op1, ThreeD op2) { ThreeD result = new ThreeD(); Console.WriteLine(result); result.x = op1.x + op2.x; result.y = op1.y + op2.y; result.z = op1.z + op2.z; return result; } } public class Program { public static void Main(string[] args) { //Your code goes here Console.WriteLine("Перегрузка бинарных операторов"); Console.WriteLine("______________________________"); Console.WriteLine(); } } }
run
|
edit
|
history
|
help
0
Delegates
New easy way to start lightweight threads
conter 1 in binnary number
Write a program to count the occurrence of each distinct item in the array?
Collections demo
Crystals Plep
Enumerable Range
Compare 2 int
Classes-and-Structures.cs
Sample code