um.. i dunno how to say and i dunno what keywords should be typed to search in this forum or in Google.
My question is, for example my program just take an input and output its square.
/* main.h */
#include <stdio.h>
int main()
{
int a,i;
for(i=0; i<10; i++){
scanf("%d", &a);
a *= a;
printf("%d\n", a);
}
return 0;
}
how can i, let say, input 1000 cases to test the program?
um.. like the SPOJ, how can it pass many input to it?
and how you guys test your program with large number of inputs without method like reading in a textfile?
Thanks,
and i felt sorry for my bad English.