943,923 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 687
  • C++ RSS
Aug 5th, 2009
0

List with static array.

Expand Post »
Can any one suggest me some online material for "List with static array" example codes ?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
newtechie is offline Offline
33 posts
since Jul 2008
Aug 5th, 2009
0

Re: List with static array.

What do you mean. Something like this :

static int Array[5] = {1,2,3,4,5};
Reputation Points: 840
Solved Threads: 594
Senior Poster
firstPerson is offline Offline
3,862 posts
since Dec 2008
Aug 5th, 2009
0

Re: List with static array.

I meant code examples or study material for linked list using static arrays.
Reputation Points: 10
Solved Threads: 0
Light Poster
newtechie is offline Offline
33 posts
since Jul 2008
Aug 5th, 2009
0

Re: List with static array.

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.
Reputation Points: 840
Solved Threads: 594
Senior Poster
firstPerson is offline Offline
3,862 posts
since Dec 2008
Aug 5th, 2009
0

Re: List with static array.

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).
Reputation Points: 10
Solved Threads: 0
Light Poster
newtechie is offline Offline
33 posts
since Jul 2008
Aug 5th, 2009
0

Re: List with static array.

I wrote a header file, now i need to write a list.cpp and main.cpp file
The header file is like this.
Quote ...
#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);
Reputation Points: 10
Solved Threads: 0
Light Poster
newtechie is offline Offline
33 posts
since Jul 2008
Aug 5th, 2009
0

Re: List with static array.

The output screen should be like this.
C++ Syntax (Toggle Plain Text)
  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
Reputation Points: 10
Solved Threads: 0
Light Poster
newtechie is offline Offline
33 posts
since Jul 2008
Aug 5th, 2009
0

Re: List with static array.

Can anybody suggest me some study material which goes into the details of linked list.
Reputation Points: 10
Solved Threads: 0
Light Poster
newtechie is offline Offline
33 posts
since Jul 2008
Aug 5th, 2009
1

Re: List with static array.

Team Colleague
Reputation Points: 2780
Solved Threads: 312
long time no c
Dave Sinkula is offline Offline
4,790 posts
since Apr 2004
Aug 5th, 2009
0

Re: List with static array.

thanks Dave
Reputation Points: 10
Solved Threads: 0
Light Poster
newtechie is offline Offline
33 posts
since Jul 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: i need help about this code please help!!
Next Thread in C++ Forum Timeline: finding mode





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC