⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.cc

📁 this is a lp0 compilator new
💻 CC
字号:
// INCLUDE FILES#include <stdlib.h>#include <iostream.h>#include "date.h"#include "stringcl.h"#include "list.h"int main ( void ){   // local variables   list<date>		dateList;   list<string>		stringList;   list<int>		intList;   int			i = 0;   cout << "Entering the integer list portion of the driver...\n";   for ( i = 0; i < 10; ++i)      intList.Add ( rand() );   intList.PrintList ( cout );   intList.Sort ();   intList.PrintList ( cout );   cout << "\n\nEntering the date protion of the list driver...\n";   for ( i = 0; i < 20; ++i )      dateList.Add ( date ( rand()%12+1, rand()%28+1, rand()%2000 ) );   dateList.PrintList ( cout );   dateList.Sort ();   dateList.PrintList ( cout );   cout << "\n\nPlaying with strings...\n";   stringList.Add ("this");   stringList.Add ("is");   stringList.Add ("a test");   stringList.Add ("of the");   stringList.Add ("List Template");   stringList.PrintList ( cout );   stringList.Sort ();   stringList.PrintList ( cout );    return ( 0 );}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -