Input with <, output with > I have no idea how the Dev-C++ IDE works, but I assume there's some way of you running your compiled executable with command-line parameters.
myprog.exe < a.in > a.out will run myprog.exe with stdin reading from the file a.in, and stout redirected to a.out. Paul Smith [email protected] On Mon, Apr 30, 2012 at 10:58 PM, Makandriaco <[email protected]> wrote: > If I have Dev-C++, can I put that somewhere in the IDE and run the > program from there? or do i need to do the command line? > also, how do they redirect both the input and the output? > > On Apr 30, 3:22 pm, Paul Smith <[email protected]> wrote: >> Using console redirection. >> >> Compile the code, say to a.out, then run it with the command line: >> >> a.out < A-small-1.in >> >> or similar. >> >> Paul Smith >> >> [email protected] >> >> >> >> On Mon, Apr 30, 2012 at 10:14 PM, Makandriaco <[email protected]> wrote: >> > Hate to sound stupid, but I have little experience with Java or Python >> > or C, so I am having some problems running the solutions. Maybe you >> > can explain how do contestants pass the file to the code when there is >> > no declaration of a file and the main only starts with a >> >> > int main() { >> > int T >> > scanf("%d",&T); >> >> > getting the number of test cases >> >> > On Apr 30, 2:52 pm, Chris Knott <[email protected]> >> > wrote: >> >> I have got solutions for ~100 of the problems on my website: >> >> chrk.atwebpages.com/ >> >> >> On Friday, April 20, 2012 4:56:50 AM UTC+1, Jason Jin Xin wrote: >> >> >> > I want to study others' code, but clicking one by one and unzip those >> >> > zip files can be quite tedious.I was wondering if there are faster >> >> > ways to do it >> >> > thanx >> >> > -- >> > You received this message because you are subscribed to the Google Groups >> > "Google Code Jam" 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 >> > athttp://groups.google.com/group/google-code?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Google Code Jam" 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. > -- You received this message because you are subscribed to the Google Groups "Google Code Jam" 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.
