Advertisement
Khillz3000

Main Program file

May 11th, 2014
322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. // FinnalProjectMain.cpp : Defines the entry point for the console application.
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "CD.h"
  6.  
  7. int main()
  8. {
  9. //Simulation Program
  10.  
  11. LinkList<CD> CDList;
  12. CD temp;
  13. CdContence contTemp;
  14. string title = "Album1";
  15. string cdLength ="Length1";
  16. string song="Song1";
  17. string songLength="Song1";
  18.  
  19. temp.setTitle(title);
  20. temp.setLength(cdLength);
  21.  
  22. contTemp.song = song;
  23. contTemp.length = songLength;
  24.  
  25. temp.Cd.appendNode(contTemp);
  26.  
  27. CDList.appendNode(temp);
  28.  
  29. title = "Album2";
  30. cdLength ="Length2";
  31. song="Song2";
  32. songLength="Song2";
  33.  
  34. temp.setTitle(title);
  35. temp.setLength(cdLength);
  36.  
  37. contTemp.song = song;
  38. contTemp.length = songLength;
  39.  
  40. temp.Cd.appendNode(contTemp);
  41.  
  42. CDList.appendNode(temp);
  43.  
  44. cout<<endl<<endl;
  45. CDList.displayList();
  46.  
  47. return 0;
  48. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement