Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // FinnalProjectMain.cpp : Defines the entry point for the console application.
- //
- #include "stdafx.h"
- #include "CD.h"
- int main()
- {
- //Simulation Program
- LinkList<CD> CDList;
- CD temp;
- CdContence contTemp;
- string title = "Album1";
- string cdLength ="Length1";
- string song="Song1";
- string songLength="Song1";
- temp.setTitle(title);
- temp.setLength(cdLength);
- contTemp.song = song;
- contTemp.length = songLength;
- temp.Cd.appendNode(contTemp);
- CDList.appendNode(temp);
- title = "Album2";
- cdLength ="Length2";
- song="Song2";
- songLength="Song2";
- temp.setTitle(title);
- temp.setLength(cdLength);
- contTemp.song = song;
- contTemp.length = songLength;
- temp.Cd.appendNode(contTemp);
- CDList.appendNode(temp);
- cout<<endl<<endl;
- CDList.displayList();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement