[gcj] Re: How to compile my code againt .in text file input?

2013-04-01 Thread ebyrob
I know this can't be useful, but what ever happened to cin and cout? (fopen I'm sure would be the wrong language?) On Tuesday, March 26, 2013 3:45:30 PM UTC-4, Adii wrote: How i am supposed to take input and do output without using fstream? -- You received this message because you are

[gcj] Re: Approach to Killer Word

2013-04-01 Thread amit
Thanks a lot, Though i dont know python, i'll try to learn the concept behind and implement it in C. A solution in C would be much appreciated. Thanks again!! On Saturday, March 30, 2013 7:46:03 PM UTC+5:30, Chris Knott wrote: You may find this Python solution a bit easier to understand -

Re: [gcj] Whats the way I should write the code?

2013-04-01 Thread ZHANG Xiongqi, Parker
I think you can use System.setIn(new FileInputStream(code_jam_input_file.txt)); System.setOut(new PrintStream(code_jam_output_file.txt)); These two line should let you read from txt file and write to a txt file. Parker On 2013/3/30 21:37, Chandra Sekhar wrote: Hi All, I am going to

Re: [gcj] Whats the way I should write the code?

2013-04-01 Thread Axel Freyn
I think you can do it as you want (but I have NOT read the rules of code jam - if you have to upload your code, it might be required to read the input-file exactly as specified) However, reading from a file (and writing to the other file) will be far easier when the files are longer (for example,

RE: [gcj] Whats the way I should write the code?

2013-04-01 Thread Aby Paul
I've been using Java for the last couple of years. But, had I been still using C++, I would have done something similar to // read from standard in and write the output to stderrwhile (getline(cin, line)) { cerr processed line \n;} // now to run the tests -$ ./a.out input.txt 2output.txt

Re: [gcj] Re: Approach to Killer Word

2013-04-01 Thread Carlos Guia
In that (and most) contest you can click on Contest analysis that will take to admins analysis of the contest, it includes an explanation on how to solve the problem. Carlos Guía On Sat, Mar 30, 2013 at 12:26 PM, amit amitm...@gmail.com wrote: Thanks a lot, Though i dont know python, i'll