![]() |
|
|||||||
|
|
Thread Tools | Search this Thread | Rate Thread |
|
#1
|
|||
|
|||
Evaluating a class as a linked list and checking for postfix expressionsHere's the problem:
I need to create a class "String" that is implemented as a linked list. This class should include the following string operations: • String input and output • A function which returns the string length • A function which returns the nth character, where the first character is number 1 • Overloaded operators = (assignment), ==, !=, <, >, <= and >= (relational). I then need to write a class "N" as a subclass of class "String". This class "N" should include an isPostfix Boolean function which determines whether or not a String is a postfix expression, where the operands of the expression are a single lowercase letter, and the operator is +, -, * or /. I will not have to evaluate any postfix expressions. Does anyone know how do do this or has done this before? Any help would be greatly appreciated. thanks. |
|||
|
#2
|
|||
|
|||
Re: evaluating a class as a linked list and checking for postfix expressionsQuote:
|
|
#3
|
|||
|
|||
Re: evaluating a class as a linked list and checking for postfix expressionsQuote:
|
|
#4
|
||||
|
||||
Re: evaluating a class as a linked list and checking for postfix expressionsocicat,
Thank you for suggesting the correct tags (to use). You may want to use the NOPARSE tag yourself e.g.: Make that [cpp] before, & [/cpp] afterwards. You can review how I posted that by clicking on the "Reply With Quote" button of this post... I think |
Recent GIDBlog
Accepted for Ph.D. program by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Link List In C | Peter_APIIT | C Programming Language | 33 | 12-Jun-2008 14:33 |
| Str_Misaligned in Double Link List | Peter_APIIT | C Programming Language | 1 | 29-Feb-2008 21:50 |
| Doubly linked list | KK2202 | C++ Forum | 2 | 13-Feb-2008 22:49 |
| yet another linked list program | aijazbaig1 | C Programming Language | 15 | 11-Sep-2007 14:18 |
| Help in C Print is not working with LinkList | batman3280 | C Programming Language | 3 | 09-Mar-2006 20:03 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The