On Monday 30 June 2008 20:06:16 Greg Chicares wrote:
> On 2008-06-30 18:12Z, tomotomo wrote:
> > When I compile g++ text.cpp, it works, an 'a' file appears. When
> > I used the command ./a.out < input.txt for input and output, the
> > cmdline says '.' is not recognized as an internal or external
> > command, operable file, or batch file.
> You're using the msw "dos prompt", so try typing just this:
> The './' part would be for a *nix shell.
Greg is quite correct here. However, there is another problem here,
or rather another misunderstanding on your part -- a.out is the
default name for the executable on *nix, but on MSW it will be a.exe