you can add this line to your code
freopen("input file name (complete path) " , "r" , stdin);
at the beginning of your main function.
make sure to have #include <cstdio>
this will redirect your standard input stream to the input file instead of
the console.
more here : http://www.cplusplus.com/reference/cstdio/freopen/
On Wed, Apr 9, 2014 at 10:48 AM, charu agarwal <[email protected]> wrote:
> I am using C++
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Code Jam" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-code/2a1f6897-ccb6-4748-81b6-a815a41e0fba%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>
--
Regards,
*Moustafa Farid*
Graduate Student | CSE Department | E-JUST
Teaching assistant | Faculty of engineering | Tanta University
Mob : +20 (0)111 822 6753
Personal Page : http://moustafa-z.scienceontheweb.net/
--
You received this message because you are subscribed to the Google Groups
"Google Code Jam" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-code/CAPsp1PrnyK%3DkV_NS35AOi9cLDs58_AKEPXkW9damrYmBmPfo0g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.