AS PRATEEK BHAIYA SAID,
We can take input from the file by using
.\program.cpp < input.txt
But It is not working in my terminal, it is showing error
AS PRATEEK BHAIYA SAID,
We can take input from the file by using
.\program.cpp < input.txt
But It is not working in my terminal, it is showing error
correct way to take input from a file is
./a.out < input.txt
here a.out is output file and
input.txt is input file
But as the bhaiya said in the lecture, in that way it is not working?
in which video bhaiya told that??
also specify the time span
i will look into it
Yes in the module "GETTING STARTED WITH C++ " in the lecture “Online-judge input and output” and time span is 4:50 onwards
bhaiya has also use the same syntax
use forward slash(/) not () also bhaiya use output file " handling_multiple_inputs " not use the code file name as you do
your mistakes
i hope this helps
if yes hit a like and don’t forgot to mark doubt as resolved
if you have more doubts regarding this feel free to ask
Yes, but handling_multiple_inputs is the name of the cpp file
no it is output file name
cpp file name is handling_multiple_inputs.cpp
ohk, Thanks for your help