By the way, using i/ofstream requires you to put #include <fstream>
with the rest of your include statements. On Thu, Apr 8, 2010 at 3:21 PM, Damon Doucet <[email protected]> wrote: > You could also learn how to do file handling in your own programming > language. (There are many tutorials online) > > For example, in C++ you could do > > ifstream input("test.in"); > > then instead of using cin >> value, you would do input >> value. > > Likewise, for output: > > ifstream output("test.out"); > output << value; > > On Thu, Apr 8, 2010 at 2:02 PM, Bharath Raghavendran <[email protected] > > wrote: > >> sry ... i put output name same as executable name :P >> this should be fine : >> ./a.out < 1.in > 1.out >> >> On 9 April 2010 00:31, Bharath Raghavendran <[email protected]> wrote: >> > one option is to use file handling in the code and take input from >> > file and put output to new file >> > >> > other option is use redirection operator in command line while running >> > code. use stdin and stdout operations in code (cin and cout for >> > example) and while running code, type >> > ./a.out < a.in > a.out >> > this will take input from a.in and put output in a.out >> > >> > On 8 April 2010 12:39, adde <[email protected]> wrote: >> >> I have downloaded small input file in practice test.can anybody tell >> >> me how to test that input with your program and how to make output >> >> file to submit.. >> >> >> >> -- >> >> 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]<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.
