Link to home
Start Free TrialLog in
Avatar of kkaneal
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
 
 
ASKER CERTIFIED SOLUTION
Avatar of Resonance
Resonance

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of kkaneal
kkaneal

ASKER

This is not a homework questions. I'm learning C programming on my own and ran into this question. Thats why I need help.

Thanks