"Depends on which language you are using. If its gcc[...]"

I guess you meant to say 'which compiler'.

Anyway, I use this standand I/O redirection operator ('<' and '>') too.
I think it's the simplest way to do that.

It ('<' and '>') works on linux and windows (ms-dos). I think MAC has a
linux-like terminal too, so It probably can be done on MAC too.

Regards,
Hugo Benicio.

On Wed, Aug 5, 2009 at 3:19 AM, Aditya Bhiday <[email protected]>wrote:

>
>
> On Tue, Aug 4, 2009 at 12:11 PM, ice <[email protected]> wrote:
>
>>
>> Who knows how to test my program with the test data provided by google
>> on my own computer locally.
>>
>>
>>
>
> Depends on which language you are using. If its gcc, use pipes to direct
> input and output through files
>
> For example,
> gcc prog1.c
> ./a.out <1.in >1.out
> will take in input from 1.in and save the output in 1.out
>
> Hope this helps.
>
> --
> Regards,
> Aditya Bhiday
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to