You are here:
Hello Canno Here are the changes you need to make: 1) change stackNode to have: char* data; as the data type. 2) change push to accept char* instead of int 3) change pop to return char*
Hello Amrutha. I will need to see your program before I can help you. I cannot tell what can be wrong from your high-level description. There could be many things wrong. For example, it is possible that
> can you tell if there is any relation of operator overloading and freind functions? Overloading an operator using a non-member function and declaring a non-member functions as a friend are two different
Hello Canno There are 2 ways that I can read your problem. 1) You want to read one string into the stack so that each stackNode has one character. or 2) you want each stackNode to contain a string
The answer is yes - probably. It depends on what sort of system you are using. Most modern desktop / workstation / server operating systems [MS Windows 32 and 64 bit (except 9x and ME), UNIX, Linux, Mac

©2009 About.com, a part of The New York Times Company. All rights reserved.