Hello there,
I have the following code which is called dbl_out. I need to redirect this to the file temp. I understand that if i write dbl_out.exe < temp it should copy it there but i dont know if i am doing it right. After i compile it using the visual C++ software what do i go from here. Do i have to bring up the msdos prompt and type in dbl_out.exe>temp or can i do it in visual C++ once i hit run.
HELP?
#include<stdio.h>
int main(void)
{
char c;
while (scanf("%c", &c) ==1) {
printf("%c", c);
printf("%c",c);
}
return 0;
}