take a look at this thread: http://groups.google.com/group/google-code/browse_thread/thread/e0ade8e0273dc5af/c15e348fecf740fc?hl=en&lnk=gst&q=how+to+change+system+standard+input+and+output#c15e348fecf740fc I think the solution from ricardo is the better for you, cause there's no need to change your code.. grato,
Gustavo Pacianotto Gouveia Escola Politécnica da Universidade de São Paulo [email protected] [email protected] [email protected] 2010/8/8 Avijit Singh <[email protected]> > hey! i got a doubt actually using our own header files how can we change > the standard input and output for a program > for example i want to make file as my standard input and output how can i > make it.I know that the above thing will work if i used file header file > like fstream.h and all but i want to use scanf for taking input from the > file instead of the keyboard so please tell me the way > > -- > You received this message because you are subscribed to the Google Groups > "google-codejam" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-code%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-code?hl=en. > -- You received this message because you are subscribed to the Google Groups "google-codejam" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-code?hl=en.
