Ask your own question, for FREE!
Computer Science 20 Online
OpenStudy (anonymous):

need help debugging one spot in C code

OpenStudy (anonymous):

This is all the code, I am having trouble with the lines that look like this: if(salary[i] >= 6.0 && position[i]=='QB') I do not know how to symbolize the QB. The file I am reading from looks like this: 4795 QB Flacco Joe 12 3 300 7653 RB McCoy LeSean 2.8 5 70

OpenStudy (anonymous):

Use strcmp to compare two strings: http://www.thinkage.ca/english/gcos/expl/c/lib/strcmp.html

OpenStudy (rsmith6559):

C is particular about quoting. Single quotes are for characters, single characters. Multiple characters use double quotes.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!