I can compile following code using "cl A.cpp" but i want to compile with an input file A.in and generate output file A.out.. is there any why to do that from cmd....
A.cpp
#include<stdio.h>
int main(){
int n;
while( scanf("%d", &n) ){
if( !n )break;
printf("%d\n", n);
}
return 0;
}
A.in
1
2
3
4
5