23. ์ปฌ๋ ์
์ด๊ธฐํ, ์ธ๋ฑ์
ยท
๐ป Programming Language/C#
ArrayList, Stack, Queue using System.Collections; using static System.Console; //์ด์ ๊ฐ์ด using static System.Console; ์ ์ ์ธํ๋ฉด ๋ณธ๋ฌธ์์ Console์ ์ ์ธํ๊ณ // WriteLine()๋ง์ผ๋ก ์ถ๋ ฅ๋ฌธ์ ์์ฑํ ์ ์๋ค. namespace CollectionInitialEx { class Program { static void Main(string[] args) { //์ปฌ๋ ์
์ด๊ธฐ์๋ฅผ ์ด์ฉํ ์ด๊ธฐํ ๋ฐฉ๋ฒ => Stack, Queue์์๋ ์ฌ์ฉํ ์ ์๋ค. //Stack์ด๋ Queue๋ Add๋ฉ์๋๋ฅผ ์ฌ์ฉํ ์ ์๊ธฐ๋๋ฌธ //์ปฌ๋ ์
์ด๊ธฐ์๋ IEnumerable์ด๋ผ๋ ์ธํฐํ์ด์ค๋ฅผ ์์๋ฐ์ Add()๋ฉ์๋๋ฅผ ๊ตฌํํ๊ณ ์..