kkaneal
asked on
pointers, strcmp( ) and getline( )
I really need help writing the following program that takes text as input and copies it to its output, minus any lines that are the same as the line they follow Example:
if the input consists of the lines:
C
is
great
great
program
program
the output should be:
C
is
great
program
Should also use high level functions, main(), getline(),strcmp(). Also must use pointer in main and all the functions mentioned above. The program must accept 50 lines and then perform the edit. I really appreciate all the help I can get. Thank
you
if the input consists of the lines:
C
is
great
great
program
program
the output should be:
C
is
great
program
Should also use high level functions, main(), getline(),strcmp(). Also must use pointer in main and all the functions mentioned above. The program must accept 50 lines and then perform the edit. I really appreciate all the help I can get. Thank
you
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks