Click here to Skip to main content
15,908,906 members

Comments by Member 14009930 (Top 10 by date)

Member 14009930 6-Oct-18 14:07pm View    
that's the whole code i'm running man and this is my file



o Lenan
McCormuck Dun
Dun
o Linaghe
McMorris
Bane
McMortagh
Keaton
Keaton
Keaton
Keaton
o ffeagh
Hefernon
Cosby
Mase
Mase
Stafford
Sutton
Sutton
Alcock
Protector
Stafford
Stafford
Clandalke
Cheevers
mc Cody
Debbon
Vynes
Vicars
ffenen
Browne
McKillpatricke
McMurrogh
Vinecomb
Wicken
starrford
Synnott
Synnot
Synnot
wicken
Waller
Wicken
Cheeuers
mc Murtagh
mc Cody
mc Donell
waller
Wagstaffe
Wagstaffe
Dunne
mc Larenc



just input any random value out of this for str and run the program you will get frequency values but it shows wrong value when i input something like "mc Larenc" which has space in between
Member 14009930 6-Oct-18 12:49pm View    
but using strcmp is returning all the values that are in the list
Member 14009930 6-Oct-18 12:09pm View    
Deleted
can you please improve my code and post it actually i tried strcmp but it wasn't working
Member 14009930 6-Oct-18 11:57am View    
Deleted
thats the input we are taking from user example let str =mc Cody now i need to check how many times this occurs in my file
Member 14009930 6-Oct-18 11:54am View    
Deleted
i need to compare whole string but my code is just comparing first 2 chars like you said