Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > Programmers Lounge > Programming Discussions » Printing its own source code..
Closed Thread
Old 09-06-2006, 01:43 PM   #1 (permalink)
 
Super Techie

Join Date: Aug 2004

Posts: 277

real_in

Send a message via Yahoo to real_in
Default Printing its own source code..

well a simple or may be a big(for me) querry is there..

how can i print the source code as the output of the program..

like i write

void main()

{

printf<<"hello world";
}

the output should be the same as :-

void main()

{

printf<<"hello world";
}


please help me..
do i need to put in some files concept.. i m n00b with C or C++, if files we gotta use, can u guyss write a small sample code..
thanks a lot in advance..
__________________
Realin Wuz here ...

real_in is offline  
Old 09-06-2006, 03:32 PM   #2 (permalink)
 
Software Developer

Join Date: Mar 2006

Location: Columbus, OH

Posts: 569

jaeusm is on a distinguished road

Default

This sounds like homework. You should do your own homework, and yes, you will need to do file i/o.
jaeusm is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On