QUOTE(sknox1 @ 3 Nov, 2006 - 01:11 PM)

//this program enters five integers into a list by using the following algorithm:
//For each input N, insert N at the front of the list. Scan the remainer of the list
//deleting all nodes that are less than N.
CODE
#include<iostream>
#include "d_random.h"
#include <list>
#include"d_list.h"
#include <vector>
using namespace std;
int main()
{
list<int>list;
int N;
int integers;
vector<int>v;
}
can anybody sheds some light on this program? and possibly explain to me what this program is asking for exactly.
sknox
Your program must:
Read in an integer from the user
Push() integer onto the front of a list.. (hint hint)
repeat read_and_push until the list length is max_size_list
Read the smallest_number from the user
ieterate through the list deleting stored values > smallest
With respect to writing, you have some choices on the implementation.
some comments on what I believe you are thinking:
int integers; is a plain int value, it can only hold one at a time... its a storage thing
list<int>list; is going to cause you grief in the compiling department. You simply can't use a keyword as a variable name.
Think carefully about this