Re: [gcj] how to test input file with your program

2010-04-09 Thread dgcooldue
Thanks a lot On Fri, Apr 9, 2010 at 1:52 AM, Damon Doucet wrote: > By the way, using i/ofstream requires you to put > > #include > > with the rest of your include statements. > > On Thu, Apr 8, 2010 at 3:21 PM, Damon Doucet wrote: > >> You could also learn how to do file handling in your ow

Re: [gcj] how to test input file with your program

2010-04-08 Thread Damon Doucet
By the way, using i/ofstream requires you to put #include with the rest of your include statements. On Thu, Apr 8, 2010 at 3:21 PM, Damon Doucet wrote: > You could also learn how to do file handling in your own programming > language. (There are many tutorials online) > > For example, in C++

Re: [gcj] how to test input file with your program

2010-04-08 Thread Damon Doucet
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"); outpu

Re: [gcj] how to test input file with your program

2010-04-08 Thread Bharath Raghavendran
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 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

Re: [gcj] how to test input file with your program

2010-04-08 Thread Bharath Raghavendran
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 thi

[gcj] how to test input file with your program

2010-04-08 Thread adde
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 googl