Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Struct Ejemplo
//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 { public struct CoOrds { public int x, y; public CoOrds(int p1, int p2) { x = p1; y = p2; } } public class Program { public static void Main(string[] args) { // Initialize: CoOrds coords1 = new CoOrds(); CoOrds coords2 = new CoOrds(10, 10); // Display results: Console.Write("CoOrds 1: "); Console.WriteLine("x = {0}, y = {1}", coords1.x, coords1.y); Console.Write("CoOrds 2: "); Console.WriteLine("x = {0}, y = {1}", coords2.x, coords2.y); // Keep the console window open in debug mode. Console.WriteLine("Press any key to exit."); } } }
run
|
edit
|
history
|
help
0
first
asxasxdf
1
s
SpiltStringBetweenSpecialCharacters
Lottofacil
Root
Selection sort
Carnival 1.0
Date Time Conversion based on time zone