List with static array.

Please support our C++ advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Jul 2008
Posts: 28
Reputation: newtechie is an unknown quantity at this point 
Solved Threads: 0
newtechie newtechie is offline Offline
Light Poster

List with static array.

 
0
  #1
Aug 5th, 2009
Can any one suggest me some online material for "List with static array" example codes ?
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 1,459
Reputation: firstPerson is just really nice firstPerson is just really nice firstPerson is just really nice firstPerson is just really nice firstPerson is just really nice 
Solved Threads: 189
firstPerson's Avatar
firstPerson firstPerson is offline Offline
Nearly a Posting Virtuoso

Re: List with static array.

 
0
  #2
Aug 5th, 2009
What do you mean. Something like this :

static int Array[5] = {1,2,3,4,5};
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 28
Reputation: newtechie is an unknown quantity at this point 
Solved Threads: 0
newtechie newtechie is offline Offline
Light Poster

Re: List with static array.

 
0
  #3
Aug 5th, 2009
I meant code examples or study material for linked list using static arrays.
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 1,459
Reputation: firstPerson is just really nice firstPerson is just really nice firstPerson is just really nice firstPerson is just really nice firstPerson is just really nice 
Solved Threads: 189
firstPerson's Avatar
firstPerson firstPerson is offline Offline
Nearly a Posting Virtuoso

Re: List with static array.

 
0
  #4
Aug 5th, 2009
what part of that are you having problem with? Starting it?

You will learn a lot more if you give it a try then see the solution,
then just study the solution.
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 28
Reputation: newtechie is an unknown quantity at this point 
Solved Threads: 0
newtechie newtechie is offline Offline
Light Poster

Re: List with static array.

 
0
  #5
Aug 5th, 2009
I need to code for an application which is a schedule program which can control appointments and cancel days.

The output screen should -
1) ask us to input an arranged day.
2) to delete an arranged day.
3) to display all arranged day(s).
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 28
Reputation: newtechie is an unknown quantity at this point 
Solved Threads: 0
newtechie newtechie is offline Offline
Light Poster

Re: List with static array.

 
0
  #6
Aug 5th, 2009
I wrote a header file, now i need to write a list.cpp and main.cpp file
The header file is like this.
#include<iostream>
#include<string>

class List
{
public:
/**** Function members*****/
List(); // constructor

bool empty() const

void insert(char days, int pos);

void erase(int pos);

void display(ostream & out) const

private:
/****** Data Members *******/
int mySize;
Char days[5];

}; //---- end of List class

ostream & operator<< (ostream & out, const List & aList);
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 28
Reputation: newtechie is an unknown quantity at this point 
Solved Threads: 0
newtechie newtechie is offline Offline
Light Poster

Re: List with static array.

 
0
  #7
Aug 5th, 2009
The output screen should be like this.
  1. Enter one of the following:
  2. 1 to insert an arranged day (Monday, Tuesday, Wednesday, Thursday, Friday)
  3. 2 to delete an arranged day
  4. 3 to display all arranged day(s)
  5. C:> 1
  6. Enter the arranged day: Monday
  7. The arranged day list: Monday
  8. C:> 1
  9. Enter the arranged day: Wednesday
  10. The arranged day list: Monday, Wednesday
  11. C:>3
  12. Your arranged day list: Monday, Wednesday
  13. C:>2
  14. Enter deleting day: Monday
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 28
Reputation: newtechie is an unknown quantity at this point 
Solved Threads: 0
newtechie newtechie is offline Offline
Light Poster

Re: List with static array.

 
0
  #8
Aug 5th, 2009
Can anybody suggest me some study material which goes into the details of linked list.
Reply With Quote Quick reply to this message  
Join Date: Apr 2004
Posts: 4,461
Reputation: Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future 
Solved Threads: 254
Team Colleague
Dave Sinkula's Avatar
Dave Sinkula Dave Sinkula is offline Offline
long time no c

Re: List with static array.

 
1
  #9
Aug 5th, 2009
"One of the methods used by statists to destroy capitalism consists in establishing controls that tie a given industry hand and foot, making it unable to solve its problems, then declaring that freedom has failed and stronger controls are necessary." --Ayn Rand
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 28
Reputation: newtechie is an unknown quantity at this point 
Solved Threads: 0
newtechie newtechie is offline Offline
Light Poster

Re: List with static array.

 
0
  #10
Aug 5th, 2009
thanks Dave
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 367 | Replies: 9
Thread Tools Search this Thread



Tag cloud for C++
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC