Advertisement
Guest User

Untitled

a guest
Nov 14th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.69 KB | None | 0 0
  1. namespace Despacito2
  2. {
  3.  
  4. public class GenericList<T>
  5. {
  6. public void Add(T input) { }
  7. }
  8. class Program
  9. {
  10. struct Zombie
  11. {
  12. int Hp;
  13. int attack;
  14. int defense;
  15. }
  16. static void Main(string[] args)
  17. {
  18. List<int> list = new List<int> { 1, 3, 5 /*4342143*/ };
  19. list.Add(4342143); // ^0 ^1 ^2 ^3
  20. list.RemoveAt(2);
  21. int[] IntArray = new int[5];
  22. IntArray[0] = 3;
  23. IntArray[1] = 5;
  24. IntArray[2] = 7;
  25. IntArray[3] = 9;
  26. IntArray[4] = 63;
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34. for (int i = 0; i <= 4; i++)
  35. {
  36.  
  37. Console.WriteLine(IntArray[i]);
  38.  
  39. }
  40.  
  41. /* foreach (int i in list)
  42. {
  43. Console.Write("{0}\t", i.ToString());
  44. }*/
  45.  
  46. Console.WriteLine();
  47. // Declare a list of type string.
  48. GenericList<string> list2 = new GenericList<string>();
  49. list2.Add("");
  50.  
  51. String smorc = Console.ReadLine();
  52. if (smorc == "SMORC") {
  53. Console.WriteLine("░░░░▄▀▀▀▀▀█▀▄▄▄▄░░░░");
  54. Console.WriteLine("░░▄▀▒▓▒▓▓▒▓▒▒▓▒▓▀▄░░");
  55. Console.WriteLine("▄▀▒▒▓▒▓▒▒▓▒▓▒▓▓▒▒▓█░");
  56. Console.WriteLine("█▓▒▓▒▓▒▓▓▓░░░░░░▓▓█░");
  57. Console.WriteLine("█▓▓▓▓▓▒▓▒░░░░░░░░▓█░");
  58. Console.WriteLine("▓▓▓▓░░░░▄▄▄▄░░░▄█▄▀░");
  59. Console.WriteLine("░▀▄▓░░▒▀▓▓▒▒░░█▓▒▒░░");
  60. Console.WriteLine("▀▄░░░░░░░░░░░░▀▄▒▒█░");
  61. Console.WriteLine("░▀░▀░░░░░▒▒▀▄▄▒▀▒▒█░");
  62. Console.WriteLine("░░▀░░░░░░▒▄▄▒▄▄▄▒▒█░");
  63. Console.WriteLine(" ░░░▀▄▄▒▒░░░░▀▀▒▒▄▀░░");
  64. Console.WriteLine("░░░░░▀█▄▒▒░░░░▒▄▀░░░");
  65. Console.WriteLine("░░░░░░░░▀▀█▄▄▄▄▀");
  66.  
  67. }
  68. Console.Read();
  69. // Declare a list of type ExampleClass.
  70. //GenericList<ExampleClass> list3 = new GenericList<ExampleClass>();
  71. //list3.Add(new ExampleClass());
  72. }
  73. }
  74. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement