>
>
> Hi all,
>
> Please help me to get the solution of following program,
>
> Write a function reverse (str) that reverses the character string str.
Use it to write a program that reverses its input a line at a time.
>
> can any one please tell me how can i use function reverse(str) to reverse
the line at a time.Just tell me the logic,please.
>
> i am desperately waiting for the solution.
>
Sure,
#include <stdlib.h>
#include <string.h>
int main()
{
char szRev[512];
char* pReversed;
cout << "Enter the string to reverse: " << endl;
cin >> szRev;
pReversed = strrev(szRev);
cout << "The reversed string was: " << pReversed << endl;
return 0;
}
------------------------ Yahoo! Groups Sponsor --------------------~-->
$4.98 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/Q7_YsB/neXJAA/yQLSAA/EbFolB/TM
--------------------------------------------------------------------~->
To unsubscribe : [EMAIL PROTECTED]
Yahoo! Groups Links
<*> To reply to this message, go to:
http://groups.yahoo.com/group/Programmers-Town/post?act=reply&messageNum=4943
Please do not reply to this message via email. More information here:
http://help.yahoo.com/help/us/groups/messages/messages-23.html
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/Programmers-Town/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/