J
jjmacias2007
Hey I'm writing be cause I am requiring some help on this program I
need to write. I was able to look at some sample code done back in
Dec. somewhat similar to what I need to do. The thing with that code
is that it reads only one line of input data reverses it and also adds
on the original line. I tried using while(gets(line)!=NULL) to make
the program read all the lines of input data but it didn't work. The
program requires that I input data from stdin out put it in the same
exact pattern but reversed and give an ending number of lines and
length of file. Does any body have any suggestions?
need to write. I was able to look at some sample code done back in
Dec. somewhat similar to what I need to do. The thing with that code
is that it reads only one line of input data reverses it and also adds
on the original line. I tried using while(gets(line)!=NULL) to make
the program read all the lines of input data but it didn't work. The
program requires that I input data from stdin out put it in the same
exact pattern but reversed and give an ending number of lines and
length of file. Does any body have any suggestions?