Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Finding a Substring in a Main String
//Title of this code //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 class Program { public static void Main(string[] args) { //Your code goes here // finding index of substrings in a string string myStr = "Hello, world!"; Console.WriteLine(myStr.IndexOf("ld")+"\n"); // returns index of the beginning of the substring Console.WriteLine(myStr.IndexOf("?")); // returns -1 when not found } } }
run
|
edit
|
history
|
help
0
Double Jump and Wall Jump
单链表
Truncate String by Byte
subtração
test
Explicit Interface Implementation
Daily Coding Problem: Problem #2
test examen
sdfrgthyju8765rb dcd vxs dd
Execution flow of static and normal constructor of base and derived class.