コード例 #1
0
        /// <summary>
        /// Task 5.2
        /// </summary>
        private static void TestSongs()
        {
            MP3Chart chart = new MP3Chart();

            chart.ShowSongs();

            bool finish = false;

            while (!finish)
            {
                int songNo = chart.GetVotes();
                if (songNo == 0)
                {
                    finish = true;
                }
            }

            chart.ShowVotes();
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: Georgia04/C0543_ConsoleApp
        ///<summary>
        /// Task 5.2. Create a list of song tracks and get vote
        /// for the favourite one.
        /// </summary>
        private static void TestMP3Chart()
        {
            MP3Chart MP3 = new MP3Chart();

            MP3.ShowSongs();

            bool finish = false;

            while (!finish)
            {
                int songNo = MP3.GetVotes();
                if (songNo == 0)
                {
                    finish = true;
                }
            }

            MP3.ShowVotes();
        }