C-style strings aren't compared with ==, you have to use strcmp or equivalent. What you're doing now is comparing two addresses that are unlikely to be the same, not the contents of two strings.
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
strcmp() returns 0 when the strings are equal. So you would in fact have to write if(strcmp(order,add) == 0) if you wanted to test whether 'order' and 'add' are the same.
John A
Vampirical Lurker
7,630 posts since Apr 2006
Reputation Points: 2,240
Solved Threads: 339
You should really be using c++ functions to do that instead of c functions, unless you are constrained by the folly of some school education establishments.
Personal preference isn't really an excuse :D
iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439