d2jsp
Log InRegister
d2jsp Forums > Off-Topic > General Chat > Homework Help > C Program Issue > Strcmp
Prev12
Add Reply New Topic New Poll
Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
Oct 4 2013 11:05pm
Quote (CorinaMarie @ Oct 5 2013 01:03am)
I see. Thanks for explaining it. So, is there a simple yes/no function instead of using that one?


likely. but i think str3 isn't holding the value he thinks it's holding. but he's got at least two topics for this question for whatever reason.
Banned
Posts: 4,377
Joined: Dec 25 2012
Gold: 13,953.01
Warn: 10%
Oct 4 2013 11:22pm
please show the entirety of your code
Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
Oct 4 2013 11:23pm
Member
Posts: 20,928
Joined: Mar 18 2009
Gold: 435,910.13
Oct 4 2013 11:32pm
thnx got it

This post was edited by bakalolo on Oct 4 2013 11:33pm
Member
Posts: 13,578
Joined: Jul 27 2010
Gold: 2,285.00
Oct 6 2013 10:36pm
Quote (bakalolo @ Oct 5 2013 01:32am)
thnx got it

Sorry I didn't see this sooner, but in case others were wondering it's because fgets includes the newline. So if you type "y" and hit enter, fgets actually sees the string as "y\n" (i.e. two characters: the y and the line feed)
Go Back To Homework Help Topic List
Prev12
Add Reply New Topic New Poll