Advertisement
Prohause

Memory wiev

Jul 20th, 2018
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3.  
  4. namespace TestApp
  5. {
  6. class Program
  7. {
  8. static void Main(string[] args)
  9. {
  10. List<String> data = new List<string>();
  11. while (true)
  12. {
  13. string command = Console.ReadLine();
  14. if (command == "Visual Studio crash")
  15. {
  16. break;
  17. }
  18.  
  19. ;
  20.  
  21.  
  22. data.AddRange(command.Split(new[] {' '}, StringSplitOptions.RemoveEmptyEntries));
  23. }
  24.  
  25. for (int i = 0; i < data.Count-2; i++)
  26. {
  27. string word = "";
  28. if (data[i] == "32656" && data[i + 1] == "19759" && data[i + 2] == "32763")
  29. {
  30. int length = int.Parse(data[i + 4]);
  31. for (int j = 0; j < length; j++)
  32. {
  33. word += (char) int.Parse(data[i + 6 + j]);
  34. }
  35.  
  36. Console.WriteLine(word);
  37. }
  38.  
  39. }
  40.  
  41. }
  42. }
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement