Run Code
|
API
|
Code Wall
|
Users
|
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
Please
log in
to post a comment.
Hello-Heath-World
u
sdfrgtyhui897ytr
Testing bitwise stuff
per1
Access Modifiers
olution to problem #2 from projecteuler.net
Evo Ivana da budes fancy :D
Unity Character Controller Version 1
NonRepeatingString
Please log in to post a comment.