| | |
don't understand
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jul 2004
Posts: 65
Reputation:
Solved Threads: 0
this is a copy of c language that i copied from the date of 19 july.
i just started to learn c++, so i don't really understand the syntax for c..
can some one explain to me how it works to "so called mirror" the words or integers. thank you
need it urgently....
#include <stdio.h>
char *f(char*s)
{char*t=s,*u=t;
while(*u)++u;--u;
while(t<u){char x=*t;*t++=*u;*u--=x;}return s;}
int main ( void )
{
char text[] = "bvx";
puts ( text );
puts ( f ( text ) );
return 0;
}
/* my output
The quick brown fox
xof nworb kciuq ehT
*/
i just started to learn c++, so i don't really understand the syntax for c..
can some one explain to me how it works to "so called mirror" the words or integers. thank you
need it urgently....
#include <stdio.h>
char *f(char*s)
{char*t=s,*u=t;
while(*u)++u;--u;
while(t<u){char x=*t;*t++=*u;*u--=x;}return s;}
int main ( void )
{
char text[] = "bvx";
puts ( text );
puts ( f ( text ) );
return 0;
}
/* my output
The quick brown fox
xof nworb kciuq ehT
*/
![]() |
Similar Threads
- Code for Call the program in Visual Basic (Visual Basic 4 / 5 / 6)
- Help me understand function in c++ (C++)
- Help me understand Pointers (C++)
- help me understand end of do while loop (C++)
- file sharing. help!!! dont understand!! (Networking Hardware Configuration)
- Creating a locking program (C)
Other Threads in the C++ Forum
- Previous Thread: File processing problem
- Next Thread: Saving a file using C++
| Thread Tools | Search this Thread |
Tag cloud for C++
6 add api array arrays beginner binary c++ c/c++ calculator char class classes code compile compiler console conversion convert count data delete desktop directshow dll download dynamic encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelper iamthwee ifstream input int integer java lib library linkedlist linker linux loop looping loops map math matrix memory microsoft newbie news number output parameter pointer problem program programming project proxy python random read recursion recursive reference return string strings struct studio system template templates test text text-file tree unix url variable vector video visual visualstudio win32 windows winsock wordfrequency wxwidgets





