IT Girl
08-10-2004, 09:14 PM
السلام عليكم ورحمة الله وبركاته
أنا مابي حل أبي تحليل أبي أحد يقولي وش المطلوب من هذا السؤال وش الاساسيات فيه وكيف اقوم بعمل الـ sequence
واكون شاكره لكم ولكم خالص الدعاء
Develop a sequence class that holds a sequence of items of type string
The sequence is represented by an array of strings, in addition to the number of items currently in the sequence.
Provide the following methods
1. A constructor that creates an empty sequence
2. A Boolean function full that will test if the sequence cannot store any more item.
3. A function size that will return the current number of items in the sequence.
4. A function Append that will append a given string at the end of the sequence.
5. A function this_string that will return a reference to the item at a given position k.
6. A destructor function that will free the allocated memory .
Create a main function to test your sequence class.
1. Read in words one per line until a sentinel is reached.
2. Replace first letter of each word with capital letter . ex : replace a with A .
3. Print the sequence and its size.
:أفكر:
أنا مابي حل أبي تحليل أبي أحد يقولي وش المطلوب من هذا السؤال وش الاساسيات فيه وكيف اقوم بعمل الـ sequence
واكون شاكره لكم ولكم خالص الدعاء
Develop a sequence class that holds a sequence of items of type string
The sequence is represented by an array of strings, in addition to the number of items currently in the sequence.
Provide the following methods
1. A constructor that creates an empty sequence
2. A Boolean function full that will test if the sequence cannot store any more item.
3. A function size that will return the current number of items in the sequence.
4. A function Append that will append a given string at the end of the sequence.
5. A function this_string that will return a reference to the item at a given position k.
6. A destructor function that will free the allocated memory .
Create a main function to test your sequence class.
1. Read in words one per line until a sentinel is reached.
2. Replace first letter of each word with capital letter . ex : replace a with A .
3. Print the sequence and its size.
:أفكر: