| | |
List with static array.
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jul 2008
Posts: 28
Reputation:
Solved Threads: 0
I wrote a header file, now i need to write a list.cpp and main.cpp file
The header file is like this.
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);
•
•
Join Date: Jul 2008
Posts: 28
Reputation:
Solved Threads: 0
The output screen should be like this.
C++ Syntax (Toggle Plain Text)
Enter one of the following: 1 to insert an arranged day (Monday, Tuesday, Wednesday, Thursday, Friday) 2 to delete an arranged day 3 to display all arranged day(s) C:> 1 Enter the arranged day: Monday The arranged day list: Monday C:> 1 Enter the arranged day: Wednesday The arranged day list: Monday, Wednesday C:>3 Your arranged day list: Monday, Wednesday C:>2 Enter deleting day: Monday
"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
![]() |
Similar Threads
- Semantic error: Cannot reach instance method: average( java.util.List ) from static c (Java)
- Dynamic Array to Static Array (C++)
- static array in a class (C++)
- Ordering an array (Java)
- deleting array elements (C)
- Is casting a static array to (char*) in strcpy() dangerous? (C)
- Problem in Reading Array Variable (C)
- Pascal database check (Pascal and Delphi)
Other Threads in the C++ Forum
- Previous Thread: i need help about this code please help!!
- Next Thread: finding mode
| Thread Tools | Search this Thread |
api array arrays based beginner binary bitmap c++ c/c++ calculator char class classes code compile compiler console conversion count data delete deploy desktop developer directshow dll download dynamic encryption error file forms fstream function functions game getline givemetehcodez google graph gui homeworkhelp homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux list loop looping loops map math matrix memory news node number output parameter pointer problem program programming project proxy python read recursion recursive return string strings struct temperature template templates test text text-file tree unix url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






