here is my code:
#include<stdlib.h>
#include<stdio.h>
#define MaxString 10
void
Read(FILE *fpin,char *s) /* read characters in input file */
Type: Posts; User: wang8442
here is my code:
#include<stdlib.h>
#include<stdio.h>
#define MaxString 10
void
Read(FILE *fpin,char *s) /* read characters in input file */
interesting~~i like it
oh yeah,i have solved it~~~
the key point is in the input file, i forgot a Enter at the end of this file,this small carelessness
make such a "big" problem~~it's all due to the Read() function,for...
thx to everyone~~~:)
i have remove the free() call and modify the code like Salem's suggestion,but the result
seems the same:(
can you explain a bit more???
for i am a beginner here~~~
i think the key point here is why it doesnot display
all the numbers,for i have pass all the numbers in the input.txt
to array...
How to display a random sequence numbers in the range
1 - 1000 , every number should be displayed once and no repetition~~~
thx~~~
My goal is to read a input.txt file(a sorted sequence numbers in the range 1-1000),and then write these numbers into a new
generated file called output.txt,but the result i excuted on my
pc is...