shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
bashamsc, please use code blocks to use in posts for code in the posts.
technosavvy's Avatar

HEHE..u are right..i tried the code on Windows using Visual Studio 2003 and Studio 2005..
there we need to include the header file <string> ... or the above program results in compilation error..!!

i then tried it on Linux and the code is working fine there..

and if header file is not a problem..then ur code shud have worked with just the change Salem has told in his earlier post..