Home > Back-end >  C language for help!!!!!!!!!! Help!!!!!!!!!!!!!! SOS!!!!!!
C language for help!!!!!!!!!! Help!!!!!!!!!!!!!! SOS!!!!!!

Time:12-14

Old man, I want to a char array stuff in there, don't know the number of cases, if the while I wrote (the scanf,,==1), so that operation is to Ctrlz can do, at the time of web pages using his only at the end to the Ctrlz (I tried may give more than one, but at the end), but I need to do two times while operating, I how to solve this problem?

CodePudding user response:

Didn't quite understand what you mean, you two a while loop is the same or different information?
If you want to the same information, copy the first read the information directly by the
If it is to read back (that is, different information), then you have to do it again while not good? If you input from the file, then the fseek offset a first read the length is ok

CodePudding user response:

Some problem if you can describe clearly almost solved,
Not solve because said don't know what the problem is,

CodePudding user response:

File ends with the EOF,
While ((c=getchar ())!=(EOF)...
  • Related