Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace MeyhodsPrepearing
- {
- class Program
- {
- public static void SplitAnalog(string str, ref char[] CharArray, ref int i, ref string[] strarr)
- {
- char[] temp = new char[str.Length];
- for (i = 0; i < str.Length; i++)
- CharArray[i] = str[i];
- for (i = 0; i < str.Length; i++)
- {
- while (CharArray[i] != ' ' || CharArray[i] != ',' || CharArray[i] != ';')
- {
- temp[i] = CharArray[i];
- }
- strarr[i] = temp.ToString();
- }
- }
- static void Main(string[] args)
- {
- char k = ' ';
- string str;
- string[] strarr;
- char[] CharArray;
- int i = 0;
- do
- {
- str = Console.ReadLine();
- CharArray = new char[str.Length];
- strarr = str.Split(' ');
- SplitAnalog(str, ref CharArray, ref i, ref strarr);
- k = Convert.ToChar(Console.ReadLine());
- } while (k == 'y');
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement