Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
test array with c#
//Rextester.Program.Main is the entry point for your code. Don't change it. //Microsoft (R) Visual C# Compiler version 2.9.0.63208 (958f2354) using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { Char[] verificateur ( char[] tableau, int depart, int taille){ if (depart <0 || taille<0 || depart+taille-1 >= tableau.Length) { return null; } char[] SousChaine = new char[taille]; for (int i = depart, j=0;j<taille; j++, i++){ SousChaine[j] = tableau[i]; } return SousChaine; } char[] Alex = new char[] {'a','b','c','x'}; Console.WriteLine(verificateur(Alex, 1, 3)); } } }
run
|
edit
|
history
|
help
0
Schrikkeljaar
Preprocessor
C# program to Determine if Two Words Are Anagrams of Each Other
Kz
dict
Interface with same methods
SierpinskiTriangleChaosGameRecursion
Const
Easter Holiday Calculator
LINQ Collections