i need to know how to write a C programme that outputs its C code into the standard output.
basically, when i run the programme the output should be the c code itself. how can i do it?
(im using compilers Turbo C and GCC-Vim)
C programming?
Before or after every line just have a printf or cout statement ouput a copy of the line.
For example:
x=x+1;
printf("x=x+1\n");
Reply:system("type whateveryounamedit.c")
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment